mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Refactor config API
This commit is contained in:
70
libsrc/db/DB_schema/schema-config-exchange.json
Normal file
70
libsrc/db/DB_schema/schema-config-exchange.json
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"type": "object",
|
||||
"required": true,
|
||||
"properties": {
|
||||
"global": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"settings": {
|
||||
"type": "object",
|
||||
"required": true,
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"object",
|
||||
"array"
|
||||
],
|
||||
"properties": {},
|
||||
"additionalProperties": true
|
||||
}
|
||||
},
|
||||
"uuid": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"required": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"instanceIds": {
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"items": {
|
||||
"type": "integer"
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"instances": {
|
||||
"type": "array",
|
||||
"required": false,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 255
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 5
|
||||
},
|
||||
"settings": {
|
||||
"type": "object",
|
||||
"required": true,
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"object",
|
||||
"array"
|
||||
],
|
||||
"properties": {},
|
||||
"additionalProperties": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
}
|
Reference in New Issue
Block a user