Skip to content

Commit

Permalink
refactor with snake_case properties
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Jul 8, 2024
1 parent 84dae36 commit 747dde4
Show file tree
Hide file tree
Showing 16 changed files with 27,763 additions and 29,708 deletions.
6,728 changes: 0 additions & 6,728 deletions data/LITURGY__anniversari.json

This file was deleted.

4,624 changes: 4,624 additions & 0 deletions data/LITURGY__anniversaries.json

Large diffs are not rendered by default.

5,692 changes: 2,839 additions & 2,853 deletions data/i18n/de.json

Large diffs are not rendered by default.

5,692 changes: 2,839 additions & 2,853 deletions data/i18n/en.json

Large diffs are not rendered by default.

5,692 changes: 2,839 additions & 2,853 deletions data/i18n/es.json

Large diffs are not rendered by default.

5,692 changes: 2,839 additions & 2,853 deletions data/i18n/fr.json

Large diffs are not rendered by default.

5,692 changes: 2,839 additions & 2,853 deletions data/i18n/it.json

Large diffs are not rendered by default.

5,692 changes: 2,839 additions & 2,853 deletions data/i18n/la.json

Large diffs are not rendered by default.

5,692 changes: 2,839 additions & 2,853 deletions data/i18n/nl.json

Large diffs are not rendered by default.

5,692 changes: 2,839 additions & 2,853 deletions data/i18n/pt.json

Large diffs are not rendered by default.

89 changes: 89 additions & 0 deletions schemas/anniversaries.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"anniversary_events": {
"type": "array",
"items": {
"$ref": "#/definitions/AnniversaryEvent"
}
},
"$schema": {
"type": "string"
}
},
"definitions": {
"AnniversaryEvent": {
"type": "object",
"additionalProperties": false,
"properties": {
"event_idx": {
"type": "integer"
},
"event_key": {
"type": "string"
},
"anniversary": {
"type": "string"
},
"event_date": {
"type": ["string", "null"],
"format": "date"
},
"event_year": {
"type": "integer",
"minimum": -18,
"maximum": 9999
},
"event_day": {
"type": ["integer", "null"],
"minimum": 1,
"maximum": 31
},
"event_month": {
"type": ["integer", "null"],
"minimum": 1,
"maximum": 12
},
"memorial_day": {
"type": "integer",
"minimum": 1,
"maximum": 31
},
"memorial_month": {
"type": "integer",
"minimum": 1,
"maximum": 12
},
"area": {
"type": ["string", "null"]
},
"calendar": {
"type": "string",
"enum": [
"universal",
"national",
"diocesan",
"wider_area"
]
},
"calendar_area": {
"type": "string"
}
},
"required": [
"event_idx",
"event_key",
"anniversary",
"event_date",
"event_year",
"event_day",
"event_month",
"memorial_day",
"memorial_month",
"area",
"calendar"
]
}
}
}
53 changes: 53 additions & 0 deletions schemas/translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"[A-Z][a-z][A-Za-z]+_[0-9]{1,4}": {
"type": "object",
"additionalProperties": false,
"properties": {
"subject": {
"type": "string"
},
"places": {
"type": "string"
},
"place_of_birth": {
"type": "string"
},
"place_of_death": {
"type": "string"
},
"place_of_burial": {
"type": "string"
},
"notes": {
"type": "string"
},
"patronage": {
"type": "string"
},
"main_shrine": {
"type": "string"
}
},
"required": [
"subject",
"places",
"place_of_birth",
"place_of_death",
"place_of_burial",
"notes",
"patronage",
"main_shrine"
]
}
},
"properties": {
"$schema": {
"type": "string"
}
}
}

Loading

0 comments on commit 747dde4

Please sign in to comment.