Skip to content
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

PropertyModelConverter in Swagger Core v1.5.19 does not map StringProperty#getEnum to ModelImpl#setEnum #2790

Closed
bronogard opened this issue May 3, 2018 · 1 comment

Comments

@bronogard
Copy link
Contributor

bronogard commented May 3, 2018

Q A
Bug or feature request? Bug
Which Swagger-Core version? 1.5.19
Which Java version? 1.8u162
Which JAX-RS framework & version? Jersey 2.22.1 with JAX-RS 2.0

Due to changes made in #2583 the following classes:

now behave differently during the serialization of the property io.swagger.models.Response#getResponseSchema by applying the ResponseSchemaMixin.java.

Therefore, the method call to io.swagger.models.utils.PropertyModelConverter#propertyToModel does not map the io.swagger.models.properties.StringProperty#getEnum to the io.swagger.models.ModelImpl#setEnum.

frantuma added a commit that referenced this issue May 3, 2018
refs #2790 - fix missing enum in converted response schema
@frantuma
Copy link
Member

frantuma commented May 3, 2018

Thanks for reporting this; missing enum fixed in #2791, available in 1.5.20-SNAPSHOT version on sonatype. Closing ticket, please reopen if you're still experiencing issues.

@frantuma frantuma closed this as completed May 3, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants