-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Question, Specification Ambiguity: Using of "allOf: []" #619
Comments
All the examples in the 2.0 spec follow the second version, i.e. there are no schema siblings of allOf (just maybe a description or similar). I would guess this is what the authors of the spec intended. Though from reading the 2.0 spec as well as the referenced JSON Schema spec, I can not find anything which would forbid the first version, though. We should make that clearer in the next version of the Spec. |
JSON Schema requires the first form in order to support |
They are both technically supported by the spec. The reason the first variant doesn't exist in any of the examples is due to lack of awareness at the time of writing and not as an intentional restriction. I believe the codegen couldn't support it because the parser didn't support it, but that's not the case anymore. This should be handled by the codegen project. |
Which of model difinitions respects the specification 2.0 ?
First:
or second? :
The question is appeared because Swagger CodeGen ignore the first definition, but Azure Rest API uses it ( https://github.com/Azure/azure-rest-api-specs/blob/master/arm-network/2016-03-30/swagger/network.json ). In the specification we can find examples and descriptions related only to the second case.
The text was updated successfully, but these errors were encountered: