From aec0a606afb7cb585bcee7fd5f400a95de0dcb1a Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Wed, 31 May 2023 11:35:09 +1000 Subject: [PATCH] Fix swagger bits --- backend/embed/api_docs/paths/tokens/post.json | 1 + backend/embed/api_docs/paths/users/post.json | 3 +++ backend/embed/api_docs/paths/users/userID/put.json | 3 +++ 3 files changed, 7 insertions(+) diff --git a/backend/embed/api_docs/paths/tokens/post.json b/backend/embed/api_docs/paths/tokens/post.json index 55d76ec1..4af11213 100644 --- a/backend/embed/api_docs/paths/tokens/post.json +++ b/backend/embed/api_docs/paths/tokens/post.json @@ -48,6 +48,7 @@ "required": ["error"], "properties": { "result": { + "type": "object", "nullable": true }, "error": { diff --git a/backend/embed/api_docs/paths/users/post.json b/backend/embed/api_docs/paths/users/post.json index dd165faa..e2f270d3 100644 --- a/backend/embed/api_docs/paths/users/post.json +++ b/backend/embed/api_docs/paths/users/post.json @@ -17,6 +17,7 @@ "content": { "application/json": { "schema": { + "type": "object", "required": ["result"], "properties": { "result": { @@ -52,9 +53,11 @@ "content": { "application/json": { "schema": { + "type": "object", "required": ["error"], "properties": { "result": { + "type": "object", "nullable": true }, "error": { diff --git a/backend/embed/api_docs/paths/users/userID/put.json b/backend/embed/api_docs/paths/users/userID/put.json index 752ba9e1..c1bb9fa8 100644 --- a/backend/embed/api_docs/paths/users/userID/put.json +++ b/backend/embed/api_docs/paths/users/userID/put.json @@ -38,6 +38,7 @@ "content": { "application/json": { "schema": { + "type": "object", "required": ["result"], "properties": { "result": { @@ -70,9 +71,11 @@ "content": { "application/json": { "schema": { + "type": "object", "required": ["error"], "properties": { "result": { + "type": "object", "nullable": true }, "error": {