-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[JAXRS] Format not respected for primitive datatype Definition models #7754
Comments
Thank you for this issue. I have tested it with
The online editor http://editor.swagger.io/ computes the type correctly. |
I have proposed a fix for the |
My PR was fixed in the |
Thanks! I'll try it out |
@webron: thank you. My strategy is to move forward with v3 as much as possible. I did a lot of work for that and I hope that my pull requests |
@jmini Completely respect that. Trust me, we want to push v3 forward as much as possible as well. However, realistically, until a majority of the generators are migrated to v3 and we've made it stable enough, we'll have to support both equally. It's part of the transition period. By the way, did you get the email I sent you? Just trying to make sure (used the one in your profile). |
Description
The format for a primitive datatype definition is not respected when referenced from other definitions or responses.
Swagger-codegen version
Originally seen in 2.3.0 but also in master
Swagger declaration file content or url
sample api.yml
Generated Test model class (partial)
Command line used for generation
swagger-codegen generate -i api.yml -l jaxrs
Steps to reproduce
Copy paste example api.yml file
Run command line
Go to src/gen/java/io/swagger/model/Test.java and the Long1 field will be an Integer but the Long2 field is a Long.
Suggest a fix/enhancement
The format property should be respected for primitive datatype Definitions.
The text was updated successfully, but these errors were encountered: