62 lines
1.9 KiB
JSON
62 lines
1.9 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
|
|
"title": "ISO 639-3",
|
|
"description": "ISO 639-3 language codes",
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
"639-3": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"alpha_3": {
|
|
"description": "Three letter terminology code of the language",
|
|
"type": "string",
|
|
"pattern": "^[a-z]{3}$"
|
|
},
|
|
"name": {
|
|
"description": "Reference name of the language",
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"scope": {
|
|
"description": "Scope of the language: I(ndividual), M(acrolanguage), S(pecial)",
|
|
"type": "string",
|
|
"pattern": "^[IMS]$"
|
|
},
|
|
"type": {
|
|
"description": "Type of the language: A(ncient), C(onstructed), E(xtinct), H(istorical), L(iving), S(pecial)",
|
|
"type": "string",
|
|
"pattern": "^[ACEHLS]$"
|
|
},
|
|
"alpha_2": {
|
|
"description": "Two letter alphabetic code of the language from part 1 (optional)",
|
|
"type": "string",
|
|
"pattern": "^[a-z]{2}$"
|
|
},
|
|
"common_name": {
|
|
"description": "Common name of the language (optional)",
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"inverted_name": {
|
|
"description": "Inverted name of the language (optional)",
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"bibliographic": {
|
|
"description": "Three letter bibliographic code of the language from part 2 (optional)",
|
|
"type": "string",
|
|
"pattern": "^[a-z]{3}$"
|
|
}
|
|
},
|
|
"required": ["alpha_3", "name", "scope", "type"],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|