Skip to content
Snippets Groups Projects
Commit 4ff5a22b authored by Alvaro Cabrera's avatar Alvaro Cabrera
Browse files

Remove until it causes issues again; [discussion-needed]

parent d81fdd6c
Branches
Tags
No related merge requests found
[
{
"description": "empty properties",
"tests": [
{
"description": "should remove empty objects, e.g. [] {}",
"schema": {
"type": "object",
"properties": {
"foo": { "$ref": "#/definitions/baz" }
},
"definitions": {
"baz": {
"type": "array",
"items": {
"anyOf": [
{ "$ref": "#/definitions/baz" }
]
}
}
}
},
"equal": {}
},
{
"description": "should leave props when required",
"schema": {
"type": "object",
"properties": {
"foo": { "$ref": "#/definitions/baz" }
},
"definitions": {
"baz": {
"type": "array",
"items": {
"anyOf": [
{ "$ref": "#/definitions/baz" }
]
}
}
},
"required": ["foo"]
},
"equal": {
"foo": []
}
}
]
}
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment