Skip to content

Commit 3ed6dc7

Browse files
authored
feat: add intlayer JSON schema and supporting test cases (#5749)
1 parent 0091e80 commit 3ed6dc7

6 files changed

Lines changed: 518 additions & 0 deletions

File tree

src/api/json/catalog.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3947,6 +3947,17 @@
39473947
"fileMatch": ["main_structure.yml"],
39483948
"url": "https://raw.githubusercontent.com/instant-python/instant-python/main/schemas/main-structure-schema.json"
39493949
},
3950+
{
3951+
"name": "intlayer",
3952+
"description": "Intlayer dictionary content declaration file",
3953+
"fileMatch": [
3954+
"*.content.json",
3955+
"*.content.yaml",
3956+
"*.content.yml",
3957+
"*.content.toml"
3958+
],
3959+
"url": "https://www.schemastore.org/intlayer.json"
3960+
},
39503961
{
39513962
"name": "ioBroker Configuration",
39523963
"description": "The configuration file of an ioBroker installation",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "../../schemas/json/intlayer.json",
3+
"content": {
4+
"simpleString": "Hello world"
5+
},
6+
"key": "app-settings",
7+
"someAdditionalProp": "should fail"
8+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../../schemas/json/intlayer.json",
3+
"content": {
4+
"pluralNode": {
5+
"nodeType": "plural",
6+
"plural": {
7+
"one": "One element"
8+
}
9+
}
10+
},
11+
"key": "app-settings"
12+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "../../schemas/json/intlayer.json",
3+
"content": {
4+
"simpleString": "Hello world"
5+
}
6+
}

0 commit comments

Comments
 (0)