chore: update schema (#17930)
This commit is contained in:
parent
5b21646c49
commit
e4f8d24b4c
3 changed files with 38 additions and 14 deletions
|
|
@ -199,7 +199,6 @@
|
|||
"enum": [
|
||||
"string",
|
||||
"bool",
|
||||
"number",
|
||||
"float",
|
||||
"int",
|
||||
"list",
|
||||
|
|
@ -207,12 +206,6 @@
|
|||
"duration"
|
||||
]
|
||||
},
|
||||
"validvalues": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"choice": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@
|
|||
},
|
||||
"required": [
|
||||
"generic",
|
||||
"heating",
|
||||
"sockets",
|
||||
"switchsockets",
|
||||
"scooter"
|
||||
|
|
|
|||
|
|
@ -65,7 +65,9 @@
|
|||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["name"],
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"title": "Template"
|
||||
},
|
||||
"Product": {
|
||||
|
|
@ -80,14 +82,28 @@
|
|||
}
|
||||
},
|
||||
"anyOf": [
|
||||
{"required": ["brand"]},
|
||||
{"required": ["description"]}
|
||||
{
|
||||
"required": [
|
||||
"brand"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"description"
|
||||
]
|
||||
}
|
||||
],
|
||||
"title": "Product"
|
||||
},
|
||||
"Groups": {
|
||||
"type": "string",
|
||||
"enum": ["generic", "switchsockets", "scooter", "sockets"]
|
||||
"enum": [
|
||||
"generic",
|
||||
"heating",
|
||||
"switchsockets",
|
||||
"scooter",
|
||||
"sockets"
|
||||
]
|
||||
},
|
||||
"Linked": {
|
||||
"type": "object",
|
||||
|
|
@ -99,7 +115,11 @@
|
|||
},
|
||||
"usage": {
|
||||
"type": "string",
|
||||
"enum": ["grid", "pv", "battery"]
|
||||
"enum": [
|
||||
"grid",
|
||||
"pv",
|
||||
"battery"
|
||||
]
|
||||
},
|
||||
"multiple": {
|
||||
"type": "boolean"
|
||||
|
|
@ -109,11 +129,21 @@
|
|||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"required": ["template", "usage"]
|
||||
"required": [
|
||||
"template",
|
||||
"usage"
|
||||
]
|
||||
},
|
||||
"Capability": {
|
||||
"type": "string",
|
||||
"enum": ["1p3p", "iso151182", "rfid", "smahems", "mA"]
|
||||
"enum": [
|
||||
"1p3p",
|
||||
"battery-control",
|
||||
"iso151182",
|
||||
"rfid",
|
||||
"smahems",
|
||||
"mA"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue