Skip to content

Commit deabd30

Browse files
committed
Add CONFIG schema files
1 parent ba084bf commit deabd30

File tree

5 files changed

+65
-0
lines changed

5 files changed

+65
-0
lines changed

docs/schemas/config.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"type": "object",
4+
"additionalProperties": false,
5+
"patternProperties": {
6+
"^__[a-z]+__$": true
7+
},
8+
"properties": {
9+
"env": {
10+
"type": "object",
11+
"properties": {},
12+
"additionalProperties": true,
13+
"$schema": "https://json-schema.org/draft/2020-12/schema"
14+
},
15+
"maps": {
16+
"type": "object",
17+
"properties": {},
18+
"additionalProperties": true,
19+
"$schema": "https://json-schema.org/draft/2020-12/schema"
20+
},
21+
"plugins": {
22+
"type": "object",
23+
"properties": {},
24+
"additionalProperties": true,
25+
"$schema": "https://json-schema.org/draft/2020-12/schema"
26+
}
27+
}
28+
}

mappyfile/schemas/config.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"type": "object",
4+
"additionalProperties": false,
5+
"patternProperties": {
6+
"^__[a-z]+__$": true
7+
},
8+
"properties": {
9+
"env": {
10+
"$ref": "env.json"
11+
},
12+
"maps": {
13+
"$ref": "maps.json"
14+
},
15+
"plugins": {
16+
"$ref": "plugins.json"
17+
}
18+
}
19+
}

mappyfile/schemas/env.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "object",
3+
"properties": {},
4+
"additionalProperties": true,
5+
"$schema": "https://json-schema.org/draft/2020-12/schema"
6+
}

mappyfile/schemas/maps.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "object",
3+
"properties": {},
4+
"additionalProperties": true,
5+
"$schema": "https://json-schema.org/draft/2020-12/schema"
6+
}

mappyfile/schemas/plugins.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "object",
3+
"properties": {},
4+
"additionalProperties": true,
5+
"$schema": "https://json-schema.org/draft/2020-12/schema"
6+
}

0 commit comments

Comments
 (0)