Skip to content

Commit

Permalink
Simplify schema with defs
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeister committed May 6, 2024
1 parent e4cbd3d commit 0446779
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions sherlock/resources/data.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,8 @@
},
"tags": {
"oneOf": [
{
"type": "string",
"enum": [ "adult", "gaming" ]
},
{
"type": "array",
"items": {
"type": "string",
"enum": [ "adult", "gaming" ]
}
}
{ "$ref": "#/$defs/tag" },
{ "type": "array", "items": { "$ref": "#/$defs/tag" } }
]
},
"request_method": {
Expand Down Expand Up @@ -78,5 +69,8 @@
},
"additionalProperties": false
}
},
"$defs": {
"tag": { "type": "string", "enum": [ "adult", "gaming" ] }
}
}

0 comments on commit 0446779

Please sign in to comment.