diff --git a/gns3server/schemas/drawing.py b/gns3server/schemas/drawing.py index 5dc06453..b15a5e3c 100644 --- a/gns3server/schemas/drawing.py +++ b/gns3server/schemas/drawing.py @@ -50,7 +50,7 @@ DRAWING_OBJECT_SCHEMA = { "rotation": { "description": "Rotation of the element", "type": "integer", - "minimum": 0, + "minimum": -359, "maximum": 360 }, "svg": { diff --git a/gns3server/schemas/label.py b/gns3server/schemas/label.py index 61a0a227..eae97417 100644 --- a/gns3server/schemas/label.py +++ b/gns3server/schemas/label.py @@ -33,7 +33,9 @@ LABEL_OBJECT_SCHEMA = { }, "rotation": { "description": "Rotation of the label", - "type": "integer" + "type": "integer", + "minimum": -359, + "maximum": 360 }, }, "required": [