44 lines
1.1 KiB
JSON
44 lines
1.1 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "https://example.com/language-config.schema.json",
|
|
"title": "Language Configuration",
|
|
"description": "Schema for validating language configuration files",
|
|
"type": "object",
|
|
"properties": {
|
|
"languages": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string",
|
|
"description": "Display name of the language",
|
|
"pattern": "^[\\w\\s-]+$"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"description": "Language identifier in locale format",
|
|
"pattern": "^[a-z]{2}-[a-z]{2}$"
|
|
},
|
|
"file": {
|
|
"type": "string",
|
|
"description": "Language file name",
|
|
"pattern": "^[A-Z]{2}_[A-Z]{2}\\.json$"
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"id",
|
|
"file"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"languages"
|
|
],
|
|
"additionalProperties": false
|
|
}
|