p3tecracknell
9 years agoOccasional Visitor
Swagger UI Composed model bug
swagger: '2.0'
info:
description: d
version: 1.0.0
title: t
paths:
/a:
get:
responses:
200:
description: d
schema:
$ref: '#/definitions/ModelB'
definitions:
ModelA:
properties:
prop1:
type: string
ModelB:
allOf:
- $ref: '#/definitions/ModelA'
- properties:
prop2:
type: string
When creating a model that picks up properties from another model, the composed model is my-labelled in the UI. In the attached example, ModelA is shown twice. As per (other bug), the link to the model in the path is also incorrect.