Skip to content

Commit

Permalink
Update checks definition schema (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonkopliku authored Oct 11, 2023
1 parent 937367d commit 1111d50
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion guides/check_definition.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"when": {
"type": "string"
},
"metadata": {
"$ref": "#/definitions/Metadata"
},
"description": {
"type": "string"
},
Expand Down Expand Up @@ -152,6 +155,40 @@
"required": [
"name"
]
},
"Metadata": {
"title": "Metadata",
"type": "object",
"minProperties": 1,
"additionalProperties": false,
"patternProperties": {
"[a-zA-Z0-9]+.*$": {
"anyOf": [
{
"type": "number"
},
{
"type": "string"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"anyOf": [
{
"type": "number"
},
{
"type": "string"
}
]
}
}
]
}
}
}
}
}
}

0 comments on commit 1111d50

Please sign in to comment.