-
Notifications
You must be signed in to change notification settings - Fork 31
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
Support generating code for JSON schema files #933
Comments
Having this code separate would also allow us to easily generate the api and the schema separately like:
With the first one importing the later. This might make larger specs both more readable and more performant to build (thinking about talk) |
We still can't output two files in a single builder, so that won't work (but it would be pretty nice). |
But if we have two builders we could chain them together in the build.yaml |
Then we would still need two separate inputs I think |
I think this is worth testing before going ahead with the issue. I think this is possible with some build.yaml magic. |
For the initial implementation I would just try to get this working. Afterwards we can improve our OpenAPI support by trying to separate the two steps. |
I did have a look at this and the only limitation I found was our current code around reference resolving ( Our current reference resolving is very limited and needs to be rewritten. I tried a few ways to fix them but the only one that worked was a bit ugly. |
Dynamite is already able to generate JSON schemas, but not directly from a JSON schema file.
A second builder should be introduced to support this. Some code refactoring that separates the two features more is likely needed.
The text was updated successfully, but these errors were encountered: