Skip to content

Commit 4ecb5b3

Browse files
committed
fix(cerbos): Rename schemas directory to _schemas
1 parent b2f5b58 commit 4ecb5b3

File tree

4 files changed

+112
-0
lines changed

4 files changed

+112
-0
lines changed

cerbos/_schemas/namespace.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Namespace Resource Schema",
4+
"type": "object",
5+
"properties": {
6+
"id": {
7+
"type": "string"
8+
},
9+
"attributes": {
10+
"type": "object",
11+
"properties": {
12+
"namespace": {
13+
"type": "string"
14+
},
15+
"visibility": {
16+
"type": "string"
17+
}
18+
},
19+
"required": ["namespace", "visibility"],
20+
"additionalProperties": true
21+
}
22+
},
23+
"required": ["id", "attributes"]
24+
}

cerbos/_schemas/site.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Site Resource Schema",
4+
"type": "object",
5+
"properties": {
6+
"id": {
7+
"type": "string"
8+
},
9+
"attributes": {
10+
"type": "object",
11+
"properties": {
12+
"siteKey": {
13+
"type": "string"
14+
},
15+
"namespace": {
16+
"type": "string"
17+
},
18+
"visibility": {
19+
"type": "string"
20+
}
21+
},
22+
"required": ["siteKey", "namespace", "visibility"],
23+
"additionalProperties": true
24+
}
25+
},
26+
"required": ["id", "attributes"]
27+
}

cerbos/_schemas/translation.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Translation Resource Schema",
4+
"type": "object",
5+
"properties": {
6+
"id": {
7+
"type": "string"
8+
},
9+
"attributes": {
10+
"type": "object",
11+
"properties": {
12+
"namespace": {
13+
"type": "string"
14+
},
15+
"siteKey": {
16+
"type": "string"
17+
},
18+
"sourceLanguage": {
19+
"type": "string"
20+
},
21+
"targetLanguage": {
22+
"type": "string"
23+
},
24+
"status": {
25+
"type": "string"
26+
}
27+
},
28+
"required": ["namespace", "siteKey", "sourceLanguage", "targetLanguage", "status"],
29+
"additionalProperties": true
30+
}
31+
},
32+
"required": ["id", "attributes"]
33+
}

cerbos/_schemas/user_admin.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "User Admin Resource Schema",
4+
"type": "object",
5+
"properties": {
6+
"id": {
7+
"type": "string"
8+
},
9+
"attributes": {
10+
"type": "object",
11+
"properties": {
12+
"scope": {
13+
"type": "string",
14+
"enum": ["system", "namespace", "site"]
15+
},
16+
"namespace": {
17+
"type": "string"
18+
},
19+
"siteKey": {
20+
"type": "string"
21+
}
22+
},
23+
"required": ["scope"],
24+
"additionalProperties": true
25+
}
26+
},
27+
"required": ["id", "attributes"]
28+
}

0 commit comments

Comments
 (0)