Skip to content

Commit

Permalink
feat: add ConsistencyChecks schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Aug 31, 2023
1 parent 5f48326 commit 16c5f48
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
13 changes: 13 additions & 0 deletions schema/in_memory_entity/has_consistency_checks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$id": "in-memory-entity/has-consistency-checks",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Has consistency checks",
"allOf": [
{
"$ref": "base.json"
},
{
"$ref": "../system/consistency_checks.json"
}
]
}
39 changes: 39 additions & 0 deletions schema/system/consistency_checks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$id": "system/consistency-checks",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "consistency checks schema",
"properties": {
"consistency_checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"severity": {
"enum": ["info", "warning", "error"]
},
"arguments": {
"type": "object"
},
"message": {
"type": "string"
},
"enabled": {
"type": "boolean"
}
},
"required": [
"name",
"severity",
"arguments",
"message"
]
}
}
}
}

0 comments on commit 16c5f48

Please sign in to comment.