mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 14:51:13 +02:00
Forbid additional properties in schemas, add missing ones.
This commit is contained in:
1 parent
b42d751e89
commit
3d6ec140b7
9 files changed
+102
-13
No files matched your search
@@ -38,6 +38,7 @@ IOU_CREATE_SCHEMA = {
|
||||
"minLength": 1,
|
||||
}
|
||||
},
|
||||
"additionalProperties": False,
|
||||
"required": ["path"],
|
||||
}
|
||||
|
||||
@@ -51,6 +52,7 @@ IOU_DELETE_SCHEMA = {
|
||||
"type": "integer"
|
||||
},
|
||||
},
|
||||
"additionalProperties": False,
|
||||
"required": ["id"]
|
||||
}
|
||||
|
||||
@@ -117,6 +119,7 @@ IOU_UPDATE_SCHEMA = {
|
||||
"type": "string"
|
||||
},
|
||||
},
|
||||
"additionalProperties": False,
|
||||
"required": ["id"]
|
||||
}
|
||||
|
||||
@@ -130,6 +133,7 @@ IOU_START_SCHEMA = {
|
||||
"type": "integer"
|
||||
},
|
||||
},
|
||||
"additionalProperties": False,
|
||||
"required": ["id"]
|
||||
}
|
||||
|
||||
@@ -143,6 +147,7 @@ IOU_STOP_SCHEMA = {
|
||||
"type": "integer"
|
||||
},
|
||||
},
|
||||
"additionalProperties": False,
|
||||
"required": ["id"]
|
||||
}
|
||||
|
||||
@@ -156,6 +161,7 @@ IOU_RELOAD_SCHEMA = {
|
||||
"type": "integer"
|
||||
},
|
||||
},
|
||||
"additionalProperties": False,
|
||||
"required": ["id"]
|
||||
}
|
||||
|
||||
@@ -173,6 +179,7 @@ IOU_ALLOCATE_UDP_PORT_SCHEMA = {
|
||||
"type": "integer"
|
||||
},
|
||||
},
|
||||
"additionalProperties": False,
|
||||
"required": ["id", "port_id"]
|
||||
}
|
||||
|
||||
@@ -341,6 +348,7 @@ IOU_ADD_NIO_SCHEMA = {
|
||||
]
|
||||
},
|
||||
},
|
||||
"additionalProperties": False,
|
||||
"required": ["id", "port_id", "slot", "port", "nio"]
|
||||
}
|
||||
|
||||
@@ -367,5 +375,6 @@ IOU_DELETE_NIO_SCHEMA = {
|
||||
"maximum": 3
|
||||
},
|
||||
},
|
||||
"additionalProperties": False,
|
||||
"required": ["id", "slot", "port"]
|
||||
}
|
||||
Reference in new issue
Block a user