-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Subs of "allOf" definitiions get all properties of the ensemble #1400
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
Comments
Looks like this is the UI aspect of implementing |
@jasonh-n-austin - yeah, this issue and #1399 should both be controlled by swagger-js. |
Specifically, in the 'limitations' of swagger-js#456, "The rendering support is not complete. The objects will contain the necessary reference information, but the json sample & mock signatures are not added". I'm assuming this is the rendering support, but the question is, should this be a bug in swagger-js instead? |
Right, the support is not complete doesn't mean that's what's supported should work properly ;) and indeed it is a bug. Should have a respective bug in js as well, yes. |
This is no longer an issue in 3.0. |
When defining a "allOf" definition, a part which is referenced gets all the properties the ensemble gets. It should keep only its own properties.
In the example below, the "Param" definition incorrectly gets the "param2" property from the "ParamExtended" definition in the ui. It should only have the "test" property.
This is on 2.1.0+ @d75505fb73a6ac4ecbeabc47bd5a42b0f4d3f270
The text was updated successfully, but these errors were encountered: