-
-
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.
create LitSchema and implement schema validation
- Loading branch information
1 parent
3938a27
commit 85702b0
Showing
2 changed files
with
79 additions
and
10 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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
class LitSchema { | ||
|
||
const INDEX = "https://litcal.org/api/dev/schemas/Index.json"; | ||
const DIOCESAN = "https://litcal.org/api/dev/schemas/DiocesanCalendar.json"; | ||
const NATIONAL = "https://litcal.org/api/dev/schemas/NationalCalendar.json"; | ||
const PROPRIUMDESANCTIS = "https://litcal.org/api/dev/schemas/PropriumDeSanctis.json"; | ||
const WIDERREGION = "https://litcal.org/api/dev/schemas/WiderRegionCalendar.json"; | ||
const DECREEMEMORIALS = "https://litcal.org/api/dev/schemas/MemorialsFromDecrees.json"; | ||
const I18N = "https://litcal.org/api/dev/schemas/LitCalTranslation.json"; | ||
|
||
const ERROR_MESSAGES = [ | ||
LitSchema::INDEX => "Schema validation error: Index not updated", | ||
LitSchema::DIOCESAN => "Schema validation error: Diocesan Calendar not created / updated", | ||
LitSchema::NATIONAL => "Schema validation error: National Calendar not created / updated", | ||
LitSchema::PROPRIUMDESANCTIS => "Schema validation error: Proprium de Sanctis data not created / updated", | ||
LitSchema::WIDERREGION => "Schema validation error: Wider Region data not created / updated", | ||
LitSchema::DECREEMEMORIALS => "Schema validation error: Memorials from Decrees data not created / updated", | ||
LitSchema::I18N => "Schema validation error: Translation data not created / updated" | ||
]; | ||
|
||
} |