Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Update DefaultCodeGen to allow additional primitive types #2799
If a string field is specified with a format which is also defined using --typeMappings, it will be treated as a primitive type
For example, if you run the following command:
The generated code will assume there is a class
Description of the PR
(details of the change, additional tests that have been done, reference to the issue for tracking, etc)
referenced this pull request
May 3, 2019
Thanks for the PR but your commit (as shown in the Commits tab) is not linked to your Github account, which means this PR won't count as your contribution in https://github.com/OpenAPITools/openapi-generator/graphs/contributors.
Let me know if you need help fixing it.
I have a similar requirement and independently generated what is (essentially) the same PR as above. It worked for my Java application as well. I would love to see this get merged and released soon! My team will likely have to maintain a patched version until then.
Thank you @steco for issuing the PR, and to the broader OpenAPI team for making such a great toolchain around OpenAPI!