Skip to content

Commit

Permalink
feat(metaschema): Add schema.rules.json
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Aug 19, 2024
1 parent 527f6db commit 574f7f6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/metaschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -386,19 +386,25 @@
"required": ["common", "deriv", "raw"],
"additionalProperties": false
},
"json": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/json"
}
},
"sidecars": {
"type": "object",
"patternProperties": {
"^derivatives$": {
"type": "object",
"properties": {
"common_derivatives": { "$ref": "#/definitions/sidecar" }
"common_derivatives": { "$ref": "#/definitions/json" }
},
"required": ["common_derivatives"],
"additionalProperties": false
},
"^(?!derivatives$)[a-z_]+$": {
"$ref": "#/definitions/sidecar"
"$ref": "#/definitions/json"
},
"additionalProperties": false
},
Expand Down Expand Up @@ -476,6 +482,7 @@
"required": [
"entities",
"files",
"json",
"sidecars",
"tabular_data",
"common_principles",
Expand Down Expand Up @@ -586,7 +593,7 @@
}
}
},
"sidecar": {
"json": {
"type": "object",
"patternProperties": {
"^[a-zA-Z0-9_]+$": {
Expand Down

0 comments on commit 574f7f6

Please sign in to comment.