-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
Description
| Q | A |
|---|---|
| Bug or feature request? | Bug |
| Which Swagger/OpenAPI version? | Swagger 2.0 |
| Which Swagger-UI version? | 3.2.0 |
| How did you install Swagger-UI? | git cloned from repository and ran using npm run dev |
| Which browser & version? | Chrome 60.0.3112.11 |
| Which operating system? | MacOs 10.12.6 |
Demonstration API definition
https://raw.githubusercontent.com/daniel-smartbear/test-resp/master/duplicate-models.yaml
Expected Behavior
Titles in AllOf should display properly in the 'Models' section of the view.
Current Behavior
Titles in AllOf don't display in the 'Models' section of the view, and the title contained in the ref is used instead eg ( - $ref: "#/definitions/createModel" )
Context
Was just checking master branch on swagger-ui, and theres an issue that titles are not working when composed with allOf. So in the attached picture the two second 'Create Model' should be named 'Update Model' and 'Model' respectively as per the given title in the yaml, but just display title from 'Create Model' Have attached yaml to test.
@owenconti any input, possibly related to swagger-api/swagger-js#1130 ?