-
Notifications
You must be signed in to change notification settings - Fork 41
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
Standalone openapi yaml schema generation #142
Comments
To answer my second question:
See also https://cloudflare.github.io/itty-router-openapi/user-guide/router-options/ |
For my first question this is interesting: https://cloudflare.github.io/itty-router-openapi/advanced-user-guide/ci-cd-pipelines/
I tried that like with
and running it using a script defined in my but it gives:
I tried to resolve it change package.json, introducing a special tsconfig for the script, but I had no luck unfortunately. |
Is it possible to generate a openapi yaml schema file from the command line? Eg running a npm command? Without the server running.
Rationale:
In development workflow I would like to generate the yaml as it will be used as input for another npm task to generate a openapi client.
During (prod) build I would like to run both to make sure everything is correct.
Second question is whether it is possible to disable the docs endpoint and yaml/json when server is running.
The text was updated successfully, but these errors were encountered: