When prefixItems is used in an array definition, the Example Value of the API in the preview page is displayed as null.
type: object
properties:
items:
type: array
description: The actions of the task.
prefixItems:
- $ref: './A.yaml'
- oneOf:
- $ref: './B.yaml'
- $ref: './C.yaml'
- $ref: './D.yaml'
minItems: 3
maxItems: 3
The Example Value of the API in the preview page shows:
{
"itmes": [
null,
null,
null
]
}
When prefixItems is used in an array definition, the Example Value of the API in the preview page is displayed as null.
The Example Value of the API in the preview page shows:
{ "itmes": [ null, null, null ] }