Simplify schema with defs

pull/2099/head
Paul Pfeister 4 weeks ago
parent e4cbd3d8ad
commit 0446779a3c

@ -23,17 +23,8 @@
}, },
"tags": { "tags": {
"oneOf": [ "oneOf": [
{ { "$ref": "#/$defs/tag" },
"type": "string", { "type": "array", "items": { "$ref": "#/$defs/tag" } }
"enum": [ "adult", "gaming" ]
},
{
"type": "array",
"items": {
"type": "string",
"enum": [ "adult", "gaming" ]
}
}
] ]
}, },
"request_method": { "request_method": {
@ -78,5 +69,8 @@
}, },
"additionalProperties": false "additionalProperties": false
} }
},
"$defs": {
"tag": { "type": "string", "enum": [ "adult", "gaming" ] }
} }
} }

Loading…
Cancel
Save