Skip to content

AllOf titles not working #3660

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

Closed
daniel-glynn opened this issue Sep 13, 2017 · 1 comment
Closed

AllOf titles not working #3660

daniel-glynn opened this issue Sep 13, 2017 · 1 comment

Comments

@daniel-glynn
Copy link

daniel-glynn commented Sep 13, 2017

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://github.com/raw/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 ?

@daniel-glynn
Copy link
Author

link swagger-ui to latest copy of swagger-js and can see issue is fixed, closing.

@lock lock bot locked and limited conversation to collaborators Jul 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant