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

Replace '.' characters by '_' in enum type names since OCaml doesn't allow to use '.' in any kind of identifiers. #7767

Merged
merged 1 commit into from
Oct 22, 2020

Conversation

cgensoul
Copy link
Contributor

@cgensoul cgensoul commented Oct 20, 2020

This PR replaces '.' characters by '_' ones in generated type names. More precisely this only affects types generated in the support/Enums.ml file.

It brings us one step closer to being able to generated compilable code for https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.yaml

Fixes #7757.

…ames since OCaml doesn't allow to use '.' in any kind of identifiers.
@wing328 wing328 changed the title Fixes #7757. Replace '.' characters by '_' in enum type names since OCaml doesn't allow to use '.' in any kind of identifiers. Replace '.' characters by '_' in enum type names since OCaml doesn't allow to use '.' in any kind of identifiers. Oct 21, 2020
@wing328 wing328 added this to the 5.0.0 milestone Oct 22, 2020
@wing328 wing328 merged commit aa28775 into OpenAPITools:master Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants