Fix inconsistency on the jsonschema API endpoint

This commit is contained in:
luukas 2022-06-10 00:10:54 +03:00
parent ce8733a079
commit f343db1a30
No known key found for this signature in database
GPG Key ID: CC4915E8D71FC044

View File

@ -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(