Update appliance_v8.json to be more strict

This commit is contained in:
grossmj 2023-08-16 00:30:48 +10:00
parent b70bf4e659
commit 5dd5f079f0

View File

@ -14,6 +14,7 @@
"docker_properties": { "docker_properties": {
"type": "object", "type": "object",
"title": "Docker template properties", "title": "Docker template properties",
"additionalProperties": false,
"properties": { "properties": {
"name": { "name": {
"type": "string", "type": "string",
@ -83,13 +84,13 @@
} }
}, },
"required": [ "required": [
"adapters",
"image" "image"
] ]
}, },
"iou_properties": { "iou_properties": {
"type": "object", "type": "object",
"title": "IOU template properties", "title": "IOU template properties",
"additionalProperties": false,
"properties": { "properties": {
"name": { "name": {
"type": "string", "type": "string",
@ -131,14 +132,7 @@
"type": "string", "type": "string",
"title": "Config loaded at startup" "title": "Config loaded at startup"
} }
}, }
"required": [
"ethernet_adapters",
"serial_adapters",
"nvram",
"ram",
"startup_config"
]
}, },
"dynamips_slot": { "dynamips_slot": {
"enum": [ "enum": [
@ -181,6 +175,7 @@
"dynamips_properties": { "dynamips_properties": {
"type": "object", "type": "object",
"title": "Dynamips template properties", "title": "Dynamips template properties",
"additionalProperties": false,
"properties": { "properties": {
"name": { "name": {
"type": "string", "type": "string",
@ -305,9 +300,7 @@
} }
}, },
"required": [ "required": [
"platform", "platform"
"ram",
"nvram"
] ]
}, },
"qemu_disk_interfaces": { "qemu_disk_interfaces": {
@ -325,6 +318,7 @@
"qemu_properties": { "qemu_properties": {
"type": "object", "type": "object",
"title": "Qemu template properties", "title": "Qemu template properties",
"additionalProperties": false,
"properties": { "properties": {
"name": { "name": {
"type": "string", "type": "string",
@ -566,14 +560,7 @@
"null" "null"
] ]
} }
}, }
"required": [
"adapter_type",
"adapters",
"ram",
"platform",
"console_type"
]
} }
}, },
"properties": { "properties": {
@ -686,9 +673,9 @@
"type": "boolean", "type": "boolean",
"title": "Whether these are the default settings" "title": "Whether these are the default settings"
}, },
"inherit_default_settings": { "inherit_default_properties": {
"type": "boolean", "type": "boolean",
"title": "Whether the default settings should be used", "title": "Whether the default properties should be used",
"default": "true" "default": "true"
}, },
"template_type": { "template_type": {
@ -905,6 +892,7 @@
"registry_version", "registry_version",
"status", "status",
"maintainer", "maintainer",
"maintainer_email" "maintainer_email",
"settings"
] ]
} }