Skip to content

Commit

Permalink
add NationalCalendarsMetadata to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Jun 4, 2022
1 parent a1de05c commit 228af9c
Showing 1 changed file with 56 additions and 20 deletions.
76 changes: 56 additions & 20 deletions schemas/LitCalMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,39 @@
"type": "string"
}
}
}
},
"NationalCalendarsMetadata": {
"type": "object",
"additionalProperties": false,
"propertyNames": {
"$ref": "https://litcal.org/api/dev/schemas/CommonDef.json#/definitions/Region"
},
"patternProperties": {
"": {
"type": "object",
"properties": {
"missals": {
"type": "array",
"items": {
"$ref": "https://litcal.org/api/dev/schemas/CommonDef.json#/definitions/Missal"
}
},
"widerRegions": {
"type": "array",
"items": {
"$ref": "#/definitions/WiderRegionDef"
}
},
"dioceses": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
"DiocesanCalendars": {
"type": "object",
Expand All @@ -50,7 +82,7 @@
"diocese"
]
}
}
}
},
"DiocesanGroups": {
"type": "object",
Expand All @@ -66,25 +98,7 @@
"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"
]
"$ref": "#/definitions/WiderRegionDef"
}
},
"RomanMissals": {
Expand Down Expand Up @@ -132,12 +146,34 @@
},
"required": [
"NationalCalendars",
"NationalCalendarsMetadata",
"DiocesanCalendars",
"DiocesanGroups",
"WiderRegions",
"RomanMissals"
],
"additionalProperties": false
},
"WiderRegionDef": {
"type": "string",
"enum": [
"Africa",
"Alsace",
"Americas",
"Anatolia",
"Antarctica",
"Asia",
"Australasia",
"Central Africa",
"Central America",
"Europe",
"Indies",
"North Africa",
"Oceania",
"Scandinavia",
"South America",
"West Indies"
]
}
}
}

0 comments on commit 228af9c

Please sign in to comment.