Skip to content

Commit

Permalink
fix LitCalMetadata schema: obj not array
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed May 20, 2022
1 parent b48bb72 commit 289f4c2
Showing 1 changed file with 106 additions and 109 deletions.
215 changes: 106 additions & 109 deletions schemas/LitCalMetadata.json
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"
}
}
}
}

0 comments on commit 289f4c2

Please sign in to comment.