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

Change swagger generator to reference schemas #116

Closed
stuartpullinger opened this issue Nov 21, 2019 · 0 comments · Fixed by #117
Closed

Change swagger generator to reference schemas #116

stuartpullinger opened this issue Nov 21, 2019 · 0 comments · Fixed by #117
Assignees

Comments

@stuartpullinger
Copy link
Contributor

The swagger generator includes the structure of the response inline: for example, here the structure of a /datafiles response in included inline. The swagger code generator takes these responses and autogenerates models for them with names like inline_response_200_7. We need to move them to the named schema sections at the end of the file and use references to point to them - as described here. This will enable the code generator to create properly named models for them and have the added benefit of reducing the spec file size a little!

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 a pull request may close this issue.

1 participant