Skip to content

Commit

Permalink
fix: update and improve schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Mar 23, 2024
1 parent edc6964 commit a0cb494
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 3 additions & 0 deletions schemas/merged-raw.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"patternProperties": {
"^([a-zA-Z_]+)": {
"type": "object",
"required": ["name", "ids"],
"properties": {
"name": {
"type": "string",
Expand All @@ -35,6 +36,7 @@
"items": {
"type": "object",
"additionalProperties": false,
"required": ["anchor", "url"],
"properties": {
"anchor": {
"type": "string",
Expand All @@ -61,6 +63,7 @@
"range": {
"type": "object",
"additionalProperties": false,
"required": [],
"properties": {
"from": {
"type": "number"
Expand Down
10 changes: 4 additions & 6 deletions schemas/merged-slim.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"definitions": {},
"required": ["vars", "version", "urls"],
"properties": {
"vars": {
"type": "object",
"patternProperties": {
"^([a-zA-Z_]+)": {
"type": "object",
"required": ["name", "ids"],
"properties": {
"name": {
"type": "string",
Expand Down Expand Up @@ -50,6 +52,7 @@
"range": {
"type": "object",
"additionalProperties": false,
"required": [],
"properties": {
"from": {
"type": "number"
Expand All @@ -70,6 +73,7 @@
"validValues": {
"type": "array",
"additionalItems": false,
"minItems": 1,
"items": {
"type": [ "string", "number"]
}
Expand All @@ -89,12 +93,6 @@
"items": {
"$ref": "doc-url.json"
}
},
"types": {
"$ref": "linked-key-var.json"
},
"varTypes": {
"$ref": "linked-key-var.json"
}
},
"additionalProperties": false
Expand Down
5 changes: 4 additions & 1 deletion schemas/merged-ultraslim.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"definitions": {},
"required": ["vars", "version", "urls", "types", "varTypes"],
"properties": {
"vars": {
"$id": "/properties/vars",
Expand All @@ -22,6 +23,7 @@
"additionalItems": false,
"items": {
"type": "object",
"required": ["u", "t"],
"properties": {
"a": {
"type": "string"
Expand All @@ -30,7 +32,8 @@
"type": "integer"
},
"t": {
"type": "integer"
"type": "integer",
"enum": [1, 2, 3]
}
},
"additionalProperties": false
Expand Down

0 comments on commit a0cb494

Please sign in to comment.