tests: Added tests for constants and tips checking

This commit is contained in:
WerWolv
2022-06-23 17:57:45 +02:00
parent f84e192774
commit bfc471f4e5
4 changed files with 127 additions and 2 deletions

39
tips/_schema.json Normal file
View File

@@ -0,0 +1,39 @@
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://example.com/object1655988771.json",
"title": "Root",
"type": "object",
"required": [
"name",
"tips"
],
"properties": {
"name": {
"$id": "#root/name",
"title": "Name",
"type": "string",
"default": "",
"examples": [
"Tips category"
],
"pattern": "^.*$"
},
"tips": {
"$id": "#root/tips",
"title": "Tips",
"type": "array",
"default": [],
"items":{
"$id": "#root/tips/items",
"title": "Items",
"type": "string",
"default": "",
"examples": [
"Some interesting tip"
],
"pattern": "^.*$"
}
}
}
}