Skip to content

Commit

Permalink
no need to use anyOf for multiple patternProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed May 22, 2024
1 parent d2e8be9 commit 18ec134
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
2 changes: 1 addition & 1 deletion LitCalHealth.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
use Swaggest\JsonSchema\InvalidValue;
use Swaggest\JsonSchema\Schema;
use Sabre\VObject;
use Sabre\VObject\InvalidDataException;
use Ratchet\MessageComponentInterface;
use Ratchet\ConnectionInterface;
use Sabre\VObject\InvalidDataException;

class LitCalHealth implements MessageComponentInterface {
protected $clients;
Expand Down
23 changes: 7 additions & 16 deletions schemas/LitCal.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,24 +121,15 @@
},
"LitCal": {
"type": "object",
"anyOf": [
{
"patternProperties": {
"^[A-Z][a-zA-Z1-9]+[0]?_vigil$": {
"$ref": "#/definitions/FestivityVigil"
}
},
"additionalProperties": false
"patternProperties": {
"^[A-Z][a-zA-Z1-9]+[0]?_vigil$": {
"$ref": "#/definitions/FestivityVigil"
},
{
"patternProperties": {
"^[A-Z][a-zA-Z1-9]+[0]?$": {
"$ref": "#/definitions/FestivityWithSeason"
}
},
"additionalProperties": false
"^[A-Z][a-zA-Z1-9]+[0]?$": {
"$ref": "#/definitions/FestivityWithSeason"
}
]
},
"additionalProperties": false
},
"Messages": {
"type": "array",
Expand Down

0 comments on commit 18ec134

Please sign in to comment.