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
[DOC] Auto-generate openapi.json #782
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Pavithra Eswaramoorthy <[email protected]>
Signed-off-by: Pavithra Eswaramoorthy <[email protected]>
Signed-off-by: Pavithra Eswaramoorthy <[email protected]>
Signed-off-by: Pavithra Eswaramoorthy <[email protected]>
Signed-off-by: Pavithra Eswaramoorthy <[email protected]>
Signed-off-by: Pavithra Eswaramoorthy <[email protected]>
Signed-off-by: Pavithra Eswaramoorthy <[email protected]>
Signed-off-by: Pavithra Eswaramoorthy <[email protected]>
Signed-off-by: Pavithra Eswaramoorthy <[email protected]>
Signed-off-by: Pavithra Eswaramoorthy <[email protected]>
Signed-off-by: Pavithra Eswaramoorthy <[email protected]>
Signed-off-by: Pavithra Eswaramoorthy <[email protected]>
✅ Deploy Preview for kaleidoscopic-dango-0cf31d ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for kaleidoscopic-dango-0cf31d ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
push: # temporary, only for testing | ||
branches: | ||
- "gen-openapi-json" |
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.
Remove these before merging
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.
Please remember to remove these.
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.
Quick question: this will make a PR against the branch that someone is trying to merge, right? So the workflow looks like this:
- I make a PR
- This action runs, updating
openapi.json
. A PR against my branch is opened. - I merge the PR to my branch
- Then I merge my branch to
main
Is that the workflow?
If I've got that workflow right, I'd vote to have a different workflow similar to how pre-commit.ci
works:
- I make a PR
- This action runs, updating
openapi.json
. A commit to my branch is made. - I merge my branch to
main
But that's just my preference.
name: "Generate openapi.json" | ||
|
||
env: | ||
DEFAULT_PYTHON_VERSION: "3.10" |
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.
Active support for 3.10 ended a year ago, any reason not to use the latest python version?
def main(): | ||
gen_openapi_json() |
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.
I'm fine with this, or if you want to drop main()
entirely and just call gen_openapi_json
that seems fine too.
push: # temporary, only for testing | ||
branches: | ||
- "gen-openapi-json" |
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.
Please remember to remove these.
Ref: #766
Description
This pull request:
openapi.json
static file. This file is used to generate the REST API docs.conda-store.sqlite
to.gitignore
Pull request checklist
Additional information
How to test
I've tested it on my fork: pavithraes#4