From ed6575b5aa48f055dc32621e479d86e58b358a7e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 23 Mar 2023 17:37:27 +1100 Subject: [PATCH] Minor updates for open api spec --- openapi/api-docs.yaml | 12 ++++++------ openapi/paths/clients.yaml | 7 +++---- openapi/paths/invoices.yaml | 2 +- openapi/paths/products.yaml | 3 ++- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/openapi/api-docs.yaml b/openapi/api-docs.yaml index 37e00cfc09..d3d1cf37a2 100644 --- a/openapi/api-docs.yaml +++ b/openapi/api-docs.yaml @@ -8768,21 +8768,20 @@ paths: type: string format: string example: D2J234DFA - produces: - - application/json requestBody: required: true content: multipart/form-data: schema: type: object - items: + properties: _method: type: string example: POST documents: type: array - format: binary + items: + format: binary responses: 200: description: 'Returns the client object' @@ -9784,7 +9783,8 @@ paths: example: POST documents: type: array - format: binary + items: + format: binary responses: 200: description: "Returns the Product object" @@ -11797,6 +11797,7 @@ paths: type: object properties: action: + required: true type: string description: | The action to be performed, options include: @@ -11828,7 +11829,6 @@ paths: Emails an array of invoices - `send_email` Emails an array of invoices. Requires additional properties to be sent. `email_type` - required: true ids: required: true type: array diff --git a/openapi/paths/clients.yaml b/openapi/paths/clients.yaml index 7bc0bf95b8..de23fd9c1d 100644 --- a/openapi/paths/clients.yaml +++ b/openapi/paths/clients.yaml @@ -382,21 +382,20 @@ type: string format: string example: D2J234DFA - produces: - - application/json requestBody: required: true content: multipart/form-data: schema: type: object - items: + properties: _method: type: string example: POST documents: type: array - format: binary + items: + format: binary responses: 200: description: 'Returns the client object' diff --git a/openapi/paths/invoices.yaml b/openapi/paths/invoices.yaml index e9f8d75ef9..44a9aa3320 100644 --- a/openapi/paths/invoices.yaml +++ b/openapi/paths/invoices.yaml @@ -371,6 +371,7 @@ type: object properties: action: + required: true type: string description: | The action to be performed, options include: @@ -402,7 +403,6 @@ Emails an array of invoices - `send_email` Emails an array of invoices. Requires additional properties to be sent. `email_type` - required: true ids: required: true type: array diff --git a/openapi/paths/products.yaml b/openapi/paths/products.yaml index cb87d45544..e8a527feee 100644 --- a/openapi/paths/products.yaml +++ b/openapi/paths/products.yaml @@ -362,7 +362,8 @@ example: POST documents: type: array - format: binary + items: + format: binary responses: 200: description: "Returns the Product object"