Allow null md5 in request schema

This commit is contained in:
Julien Duponchelle 2015-06-19 16:38:22 +02:00
parent a8e69d9a0b
commit 8bd2453bf8
2 changed files with 6 additions and 6 deletions

View File

@ -59,7 +59,7 @@ VM_CREATE_SCHEMA = {
}, },
"image_md5sum": { "image_md5sum": {
"description": "checksum of the IOS image", "description": "checksum of the IOS image",
"type": "string", "type": ["string", "null"],
"minLength": 1, "minLength": 1,
}, },
"startup_config": { "startup_config": {
@ -295,7 +295,7 @@ VM_UPDATE_SCHEMA = {
}, },
"image_md5sum": { "image_md5sum": {
"description": "checksum of the IOS image", "description": "checksum of the IOS image",
"type": "string", "type": ["string", "null"],
"minLength": 1, "minLength": 1,
}, },
"startup_config_content": { "startup_config_content": {
@ -558,7 +558,7 @@ VM_OBJECT_SCHEMA = {
}, },
"image_md5sum": { "image_md5sum": {
"description": "checksum of the IOS image", "description": "checksum of the IOS image",
"type": "string", "type": ["string", "null"],
"minLength": 1, "minLength": 1,
}, },
"startup_config": { "startup_config": {

View File

@ -48,7 +48,7 @@ IOU_CREATE_SCHEMA = {
}, },
"md5sum": { "md5sum": {
"description": "Checksum of iou binary", "description": "Checksum of iou binary",
"type": "string" "type": ["string", "null"]
}, },
"serial_adapters": { "serial_adapters": {
"description": "How many serial adapters are connected to the IOU", "description": "How many serial adapters are connected to the IOU",
@ -121,7 +121,7 @@ IOU_UPDATE_SCHEMA = {
}, },
"md5sum": { "md5sum": {
"description": "Checksum of iou binary", "description": "Checksum of iou binary",
"type": "string" "type": ["string", "null"]
}, },
"serial_adapters": { "serial_adapters": {
"description": "How many serial adapters are connected to the IOU", "description": "How many serial adapters are connected to the IOU",
@ -199,7 +199,7 @@ IOU_OBJECT_SCHEMA = {
}, },
"md5sum": { "md5sum": {
"description": "Checksum of iou binary", "description": "Checksum of iou binary",
"type": "string" "type": ["string", "null"]
}, },
"serial_adapters": { "serial_adapters": {
"description": "How many serial adapters are connected to the IOU", "description": "How many serial adapters are connected to the IOU",