-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fixing polymorphism issues #1741
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
Conversation
- Fixed: swagger-api#1737
…ew metadata (cherry picked from commit e4d540b)
|
@fehguy ?... anyone...? |
|
Hi @roni-frantchi - the biggest reason is time :) We can possibly review this in about two weeks (definitely not this week), but I can't guarantee that. It looks like this PR needs to be resynced with the code before it can be merged. |
|
Oh, and Shana Tova. |
|
@webron will get right on resolving those pesky conflicts and push for reviewal Shana Tova :) |
…into 'master' of https://github.com/sapienstech/swagger-core # Conflicts: # modules/swagger-annotations/pom.xml # modules/swagger-core/pom.xml # modules/swagger-core/src/test/resources/Cat.json # modules/swagger-hibernate-validations/pom.xml # modules/swagger-jaxrs/pom.xml # modules/swagger-jersey-jaxrs/pom.xml # modules/swagger-jersey2-jaxrs/pom.xml # modules/swagger-models/pom.xml # modules/swagger-mule/pom.xml # modules/swagger-servlet/pom.xml # pom.xml
|
I'm sorry for this taking so long, but this introduces attributes which are illegal in the spec ( |
|
@fehguy wait, what? |
|
There is a difference between having a property in the java pojo and in the JSON/YAML description. This: Is not valid in the specification: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md And can't be there. We can have private fields in the pojos, but they cannot live in the JSON generated. |
@fehguy that's understood. Looking for recommendation of what fixes I may apply here that would make the approach valid. |
|
@fehguy the spec says:
So, if I add that prefix, meaning |
@ApiModel(parent = Pet.class)seems to have no affect whensubTypesisn't set #1737