mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
Merge branch 'hotfix/jsonschema-inconsistency' into 'dev'
Fix inconsistency on the `jsonschema` API endpoint See merge request crafty-controller/crafty-4!306
This commit is contained in:
commit
cf06574fca
@ -43,11 +43,11 @@ class ApiJsonSchemaHandler(BaseApiHandler):
|
||||
{"status": "ok", "data": create_role_schema},
|
||||
)
|
||||
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":
|
||||
self.finish_json(
|
||||
200,
|
||||
new_server_schema,
|
||||
{"status": "ok", "data": new_server_schema},
|
||||
)
|
||||
elif schema_name == "user_patch":
|
||||
self.finish_json(
|
||||
|
Loading…
x
Reference in New Issue
Block a user