swagger-ui: Wrong model titles when composing using allOf
When composing models using allOf, swagger-ui displays wrong model title for composed model. It uses last model referenced in allOf instead of one defined.
Definition:
definitions:
Simple1:
type: object
properties:
id1:
type: integer
format: int64
Simple2:
type: object
properties:
id2:
type: integer
format: int64
Composed:
allOf:
- $ref: '#/definitions/Simple1'
- $ref: '#/definitions/Simple2'
Expected result:
Simple1{...}
Simple2{...}
Composed{...}
Actual result:
Simple1{...}
Simple2{...}
Simple2{...}
Affected version: v3.0.0-229-g7790383
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 11
- Comments: 21 (9 by maintainers)
Commits related to this issue
- Fixes #2946 — committed to lekoder/swagger-ui by lekoder 7 years ago
- #2946 Fix — committed to GSokol/swagger-ui by GSokol 7 years ago
- #2946 Fix CR fix — committed to GSokol/swagger-ui by GSokol 7 years ago
- Merge pull request #3250 from GSokol/#2946_FIX #2946 Fix — committed to swagger-api/swagger-ui by shockey 7 years ago
I have encountered the same problem, how is the progress?