-
Notifications
You must be signed in to change notification settings - Fork 3
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
Make Kedge JSON Schema generation configurable #22
Comments
This commit makes schemagen output only JSON Schema for the Kedge controllers by default. This behavior can be changed by setting --controller flag to false. Fixes kedgeproject#22
Tried this with #27 but then the JSON Schema being outputted was invalid. |
It is really confusing to have all those unnecessary files :-( |
Currently, when we run
openapi2jsonschema
likeopenapi2jsonschema _output/kedge-oapi.json -o schema/ --stand-alone
, all the objects are generated which we do not need a lot of times.We need to configure this such that we get the flexibility to generate only controllers.
@surajssd attempted to solve this here - surajssd/openapi2jsonschema@766a276
But we need to filter out controllers before passing on to openapi2jsonschema using tools like
jq
or something similar.The text was updated successfully, but these errors were encountered: