-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
When a schema produces multiple oneOf statements for a key, we are nesting them when we should be combining them
Example
{
"form": [
{
"value": "John Doe",
},
{
"value": [],
},
{
"value": null,
},
]
},
{
"form": null
},
{
"form": [
{
"value": false,
},
{
"value": ["First", "Second"],
},
{
"value": 3,
},
]
}Expected
value:
oneOf:
- type: string
- type: array
items: {}
- type: boolean
- type: array
items:
type: string
- type: integerActual
value:
oneOf:
- oneOf:
- type: string
- type: array
items: {}
- oneOf:
- type: boolean
- type: array
items:
type: string
- type: integerMetadata
Metadata
Assignees
Labels
No labels