Closed
Description
This applies to OneOf/AnyOf and I believe this could be used for AllOf.
JSON Schema:
{
"title": "NullExample",
"description": "Null Example",
"oneOf": [
{
"type": "object",
"properties": {
"foo": {
"type": "string"
}
}
},
{
"type": "object",
"properties": {
"bar": {
"type": "number"
}
}
},
{
"type": "null"
}
]
}
Turns into:
{
"title": "NullExample",
"description": "Null Example",
"oneOf": [
{
"type": "object",
"properties": {
"foo": {
"type": "string"
}
}
},
{
"type": "object",
"properties": {
"bar": {
"type": "number"
}
}
},
{
"nullable": true
}
]
}
The output should be:
{
"title": "NullExample",
"description": "Null Example",
"oneOf": [
{
"type": "object",
"properties": {
"foo": {
"type": "string"
}
},
"nullable": true
},
{
"type": "object",
"properties": {
"bar": {
"type": "number"
}
},
"nullable": true
}
]
}
Metadata
Metadata
Assignees
Labels
No labels