From 1995adf838f3b3f01a865df17cc69aa4f9b4a5eb Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 10 Feb 2016 18:20:15 +0100 Subject: [PATCH] Fix Update a docker container is broken and raise a 400 Fix #403 --- gns3server/schemas/docker.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gns3server/schemas/docker.py b/gns3server/schemas/docker.py index f4b416cd..666ffacc 100644 --- a/gns3server/schemas/docker.py +++ b/gns3server/schemas/docker.py @@ -91,8 +91,13 @@ DOCKER_UPDATE_SCHEMA = { "description": "Docker environment", "type": ["string", "null"], "minLength": 0, + }, + "adapters": { + "description": "number of adapters", + "type": ["integer", "null"], + "minimum": 0, + "maximum": 99, } - }, "additionalProperties": False, }