From 57d8f2624642da103866d3aa39a28cf1f85a3a2f Mon Sep 17 00:00:00 2001 From: Jeronimo Irazabal Date: Fri, 13 Oct 2023 13:44:38 +0200 Subject: [PATCH] chore(pkg/api): set optional parameters Signed-off-by: Jeronimo Irazabal --- pkg/api/openapi/apidocs.swagger.json | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/pkg/api/openapi/apidocs.swagger.json b/pkg/api/openapi/apidocs.swagger.json index e394bc7e1e..200a839282 100644 --- a/pkg/api/openapi/apidocs.swagger.json +++ b/pkg/api/openapi/apidocs.swagger.json @@ -808,7 +808,7 @@ "revisions": { "type": "array", "items": { - "$ref": "#/definitions/modelDocumentAtRevision" + "$ref": "#/definitions/modelDocumentAtRevisionAudit" } } }, @@ -956,6 +956,17 @@ "type": "object" }, "modelDocumentAtRevision": { + "type": "object", + "properties": { + "document": { + "type": "object" + } + }, + "required": [ + "document" + ] + }, + "modelDocumentAtRevisionAudit": { "type": "object", "properties": { "transactionId": { @@ -986,7 +997,9 @@ "required": [ "transactionId", "documentId", - "revision" + "revision", + "username", + "ts" ] }, "modelDocumentMetadata": { @@ -1207,9 +1220,7 @@ } }, "required": [ - "expressions", - "orderBy", - "limit" + "expressions" ] }, "modelQueryExpression": { @@ -1279,8 +1290,7 @@ "required": [ "query", "page", - "pageSize", - "keepOpen" + "pageSize" ] }, "modelSearchDocumentsRequestWith": { @@ -1300,8 +1310,7 @@ }, "required": [ "page", - "pageSize", - "keepOpen" + "pageSize" ] }, "modelSearchDocumentsResponse": {