Skip to content
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

Add script to persist OpenAPI file #10

Merged
merged 1 commit into from
Sep 21, 2023
Merged

Conversation

Polo2
Copy link
Member

@Polo2 Polo2 commented Sep 21, 2023

Run this script:
it reads locahost/docs.json, and upate docs/openapi.json if necessary.

  • provide variables url or output_file_path if you need to override

  • the script fetch json content of locahost/docs.json (the OpenAPI page),
    with pretty-print answer jq

  • then, this pretty JSON is saved inside docs/openapi.json

🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉

How to use it:
Each time you push a branch, run bash docs/persist.sh, and docs/openapi.json
will be persisted.

Then, via GitHub action, each change on this spec is received and processed
by Bump.sh -> Is this a breaking change?

@Polo2 Polo2 force-pushed the add-bash-script-to-persist-OpenAPI branch from fb3cd89 to 5c9572e Compare September 21, 2023 05:34
Run this script:
it reads locahost/docs.json, and upate docs/openapi.json if necessary.

- provide variables url or output_file_path if you need to override
- the script fetch json content of locahost/docs.json (the OpenAPI page),
with pretty-print answer `jq`

- then, this pretty JSON is saved inside docs/openapi.json

🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉

How to use it:
Each time you push a branch, run `bash docs/persist.sh`, and docs/openapi.json
will be persisted.

Then, via GitHub action, each change on this spec is received and processed
by Bump.sh -> Is this a breaking change?

🤔 Reponses order has been modified, 404 comes after 422 ?
@Polo2 Polo2 force-pushed the add-bash-script-to-persist-OpenAPI branch from 5c9572e to 8eec83d Compare September 21, 2023 05:39
@Polo2 Polo2 merged commit ad8dea3 into main Sep 21, 2023
4 checks passed
@Polo2 Polo2 deleted the add-bash-script-to-persist-OpenAPI branch September 21, 2023 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant