-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix LitCalMetadata schema: obj not array
- Loading branch information
1 parent
b48bb72
commit 289f4c2
Showing
1 changed file
with
106 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,135 +1,132 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/LitCalMetadata" | ||
"type": "object", | ||
"properties": { | ||
"LitCalMetadata": { | ||
"$ref": "#/definitions/LitCalMetadata" | ||
} | ||
}, | ||
"required": [ | ||
"LitCalMetadata" | ||
], | ||
"title": "LitCalMetadata", | ||
"definitions": { | ||
"LitCalMetadata": { | ||
"type": "object", | ||
"properties": { | ||
"LitCalMetadata": { | ||
"NationalCalendars": { | ||
"type": "object", | ||
"properties": { | ||
"NationalCalendars": { | ||
"type": "object", | ||
"propertyNames": { | ||
"$ref": "https://litcal.org/api/dev/schemas/CommonDef.json#/definitions/Region" | ||
}, | ||
"patternProperties": { | ||
"": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"DiocesanCalendars": { | ||
"type": "object", | ||
"patternProperties": { | ||
"": { | ||
"type": "object", | ||
"properties": { | ||
"nation": { | ||
"$ref": "https://litcal.org/api/dev/schemas/CommonDef.json#/definitions/Region" | ||
}, | ||
"diocese": { | ||
"type": "string" | ||
}, | ||
"group": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"nation", | ||
"diocese" | ||
] | ||
} | ||
} | ||
}, | ||
"DiocesanGroups": { | ||
"propertyNames": { | ||
"$ref": "https://litcal.org/api/dev/schemas/CommonDef.json#/definitions/Region" | ||
}, | ||
"patternProperties": { | ||
"": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"DiocesanCalendars": { | ||
"type": "object", | ||
"patternProperties": { | ||
"": { | ||
"type": "object", | ||
"patternProperties": { | ||
"": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
"properties": { | ||
"nation": { | ||
"$ref": "https://litcal.org/api/dev/schemas/CommonDef.json#/definitions/Region" | ||
}, | ||
"diocese": { | ||
"type": "string" | ||
}, | ||
"group": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"WiderRegions": { | ||
}, | ||
"required": [ | ||
"nation", | ||
"diocese" | ||
] | ||
} | ||
} | ||
}, | ||
"DiocesanGroups": { | ||
"type": "object", | ||
"patternProperties": { | ||
"": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"enum": [ | ||
"Africa", | ||
"Alsace", | ||
"Americas", | ||
"Anatolia", | ||
"Antarctica", | ||
"Asia", | ||
"Australasia", | ||
"Central Africa", | ||
"Central America", | ||
"Europe", | ||
"Indies", | ||
"North Africa", | ||
"Oceania", | ||
"Scandinavia", | ||
"South America", | ||
"West Indies" | ||
] | ||
"type": "string" | ||
} | ||
}, | ||
"RomanMissals": { | ||
} | ||
} | ||
}, | ||
"WiderRegions": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"enum": [ | ||
"Africa", | ||
"Alsace", | ||
"Americas", | ||
"Anatolia", | ||
"Antarctica", | ||
"Asia", | ||
"Australasia", | ||
"Central Africa", | ||
"Central America", | ||
"Europe", | ||
"Indies", | ||
"North Africa", | ||
"Oceania", | ||
"Scandinavia", | ||
"South America", | ||
"West Indies" | ||
] | ||
} | ||
}, | ||
"RomanMissals": { | ||
"type": "object", | ||
"propertyNames": { | ||
"$ref": "https://litcal.org/api/dev/schemas/CommonDef.json#/definitions/MissalDef" | ||
}, | ||
"patternProperties": { | ||
"": { | ||
"type": "object", | ||
"propertyNames": { | ||
"$ref": "https://litcal.org/api/dev/schemas/CommonDef.json#/definitions/MissalDef" | ||
}, | ||
"patternProperties": { | ||
"": { | ||
"properties": { | ||
"value": { | ||
"$ref": "https://litcal.org/api/dev/schemas/CommonDef.json#/definitions/Missal" | ||
}, | ||
"name": { | ||
"$ref": "https://litcal.org/api/dev/schemas/CommonDef.json#/definitions/MissalName" | ||
}, | ||
"sanctoraleFileName": { | ||
"$ref": "https://litcal.org/api/dev/schemas/CommonDef.json#/definitions/MissalFileName" | ||
}, | ||
"yearLimits": { | ||
"type": "object", | ||
"properties": { | ||
"value": { | ||
"$ref": "https://litcal.org/api/dev/schemas/CommonDef.json#/definitions/Missal" | ||
"sinceYear": { | ||
"type": "integer" | ||
}, | ||
"name": { | ||
"$ref": "https://litcal.org/api/dev/schemas/CommonDef.json#/definitions/MissalName" | ||
}, | ||
"sanctoraleFileName": { | ||
"$ref": "https://litcal.org/api/dev/schemas/CommonDef.json#/definitions/MissalFileName" | ||
}, | ||
"yearLimits": { | ||
"type": "object", | ||
"properties": { | ||
"sinceYear": { | ||
"type": "integer" | ||
}, | ||
"untilYear": { | ||
"type": "integer" | ||
} | ||
}, | ||
"required": [ "sinceYear" ] | ||
"untilYear": { | ||
"type": "integer" | ||
} | ||
}, | ||
"required": [ | ||
"value", | ||
"name", | ||
"sanctoraleFileName", | ||
"yearLimits" | ||
] | ||
"required": [ "sinceYear" ] | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"value", | ||
"name", | ||
"sanctoraleFileName", | ||
"yearLimits" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"LitCalMetadata" | ||
], | ||
"title": "LitCalMetadata" | ||
} | ||
} | ||
} | ||
} |