mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix inconsistency on the jsonschema API endpoint
This commit is contained in:
parent
ce8733a079
commit
f343db1a30
@ -43,11 +43,11 @@ class ApiJsonSchemaHandler(BaseApiHandler):
|
|||||||
{"status": "ok", "data": create_role_schema},
|
{"status": "ok", "data": create_role_schema},
|
||||||
)
|
)
|
||||||
elif schema_name == "server_patch":
|
elif schema_name == "server_patch":
|
||||||
self.finish_json(200, server_patch_schema)
|
self.finish_json(200, {"status": "ok", "data": server_patch_schema})
|
||||||
elif schema_name == "new_server":
|
elif schema_name == "new_server":
|
||||||
self.finish_json(
|
self.finish_json(
|
||||||
200,
|
200,
|
||||||
new_server_schema,
|
{"status": "ok", "data": new_server_schema},
|
||||||
)
|
)
|
||||||
elif schema_name == "user_patch":
|
elif schema_name == "user_patch":
|
||||||
self.finish_json(
|
self.finish_json(
|
||||||
|
Loading…
Reference in New Issue
Block a user