-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
Description
Is it possible for swagger-ui to display example of a complex object which has referenced properties. Something like this.
Model:
type: object
properties:
id:
type: integer
description: model
name:
type: string
description: Name of the model
example:
id: 1
name: model1
Models:
type: object
properties:
prop1:
type: array
items:
$ref: '#/definitions/Model'
prop2:
type: string
example:
prop1:
- $ref: '#/definitions/Model'
prop2: 'dummy value'Swagger-ui version 2.1.8-M1