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

Support no schema key #57

Merged
merged 5 commits into from
Feb 4, 2019
Merged

Support no schema key #57

merged 5 commits into from
Feb 4, 2019

Conversation

merlincox
Copy link
Contributor

Unfortunately some JSON schema, in particular the Swagger definitions which can exported from AWS API Gateway do not contain a $schema key. This PR allows the generation of Golang models from JSON schema of this type by adding a command line switch and an additional optional argument to the jsonschema.Parse function to allow schema without a $schema key.

@a-h a-h merged commit f3043e0 into a-h:master Feb 4, 2019
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.

None yet

2 participants