required doesn't work in the use case below
type: object
properties:
models:
type: array
items:
$ref: '#/definitions/model'
required: [name]
nor like this
items:
allOf:
- $ref: '#/definitions/model'
required: [name]
but works indirectly like this
type: object
properties:
models:
type: array
items:
$ref: '#/definitions/temp'
temp:
allOf:
- $ref: '#/definitions/model'
- required: [name]
Any idea? I think the array causing the problem
- swagger-ui version: 2.1.8-M1