-
Notifications
You must be signed in to change notification settings - Fork 9
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
Snakecase fields in records should be turned into camelCase #17
Comments
I think this is a nice-to-have, since
which would be valid swagger. |
I would argue that that example should actually be invalid swagger. If you have to things with the same name, the only difference being |
I agree it's a bad schema, but it's nonetheless a valid spec. Swagger is very unopinionated on how you name your fields. I suppose it's a separate issue though, since sanitization can already cause collisions. |
I would think the ideal approach would be to make swagger-elm warn you when your API contains underscores, and provide a flag for auto-converting it to camelCase |
That sounds like a good solution |
Example input:
right now generates:
It should instead generate:
The text was updated successfully, but these errors were encountered: