Skip to content

Commit

Permalink
Add countryReplacements JSON schema
Browse files Browse the repository at this point in the history
  • Loading branch information
peternewman authored Oct 19, 2022
1 parent b9fc077 commit 4daf7f4
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions schema/countryReplacements.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"title": "countryReplacements.json",
"description": "JSON Schema for config/countryReplacements.json",
"$comment": "The contents of this file should contain simple ISO 3166-1 alpha-2 replacements that can be done in bulk.",
"type": "object",
"additionalProperties": false,
"required": ["replacements"],
"properties": {

"replacements": {
"description": "(required) Legacy ISO 3166-1 alpha-2 identifiers that should be replaced with new ISO 3166-1 alpha-2 identifiers.",
"type": "object",
"additionalProperties": false,
"patternProperties": {

"^[a-z][a-z]$": {
"description": "(required) The legacy ISO 3166-1 alpha-2 identifier.",
"type": "object",
"additionalProperties": false,
"required": ["country"],
"properties": {

"country": {
"description": "(required) The replacement ISO 3166-1 alpha-2 identifier.",
"type": "string"
},

"note": {
"description": "(optional) An optional note - can contain anything about the item.",
"type": "string"
}

}
}

}
}

}
}

0 comments on commit 4daf7f4

Please sign in to comment.