-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenAPI spec for Jupyter Workflows #531
base: dag-scheduling
Are you sure you want to change the base?
Conversation
7d800f3
to
5d8fb4c
Compare
9ee87f8
to
0c60643
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nsingl00. Thank you for opening and rebasing this PR. Currently there are some .yaml formatting errors. I left suggestions on and comments about fixing them, could you please give them a look? Using IDE with .yaml linting should highlight all the errors mentioned.
Some OpenAPI tools that I find useful:
- VSCode OpenAPI plugin https://marketplace.visualstudio.com/items?itemName=42Crunch.vscode-openapi
- https://editor.swagger.io/, it can generate a (more) human-readable API docs which should make API discussions and reviews in the future easier. Please see https://app.swaggerhub.com/apis/andrii-i/jupyter-scheduler/2.7.1-oas3 for an example.
8717348
to
7af10dc
Compare
70c342a
to
4082eb9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the update @nsingl00. Currently some models / components referenced in the spec are missing from the components section: CreateJobFromDefinition
, RuntimeEnvironment
, DSNamespace
, JobFile
. Could you please add these missing models / components to the spec?
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/CreateJobFromDefinition' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Failed to resolve reference" error
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/CreateJobFromDefinition' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Failed to resolve reference" error
schema: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/RuntimeEnvironment' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Failed to resolve reference" error
schema: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/DSNamespace' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Failed to resolve reference" error
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/DSNamespace' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Failed to resolve reference" error
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/DSNamespace' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Failed to resolve reference" error
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/DSNamespace' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Failed to resolve reference" error
job_files: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/JobFile' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Failed to resolve reference" error
No description provided.