From 516c727d66f9cd4cb3117f5d2bf579e1a9d49c98 Mon Sep 17 00:00:00 2001 From: George J Padayatti Date: Thu, 12 Oct 2023 18:33:41 +0530 Subject: [PATCH] Upd: remove array response Signed-off-by: George J Padayatti --- openapi/v2023.8.2/bundled.yaml | 55 +++++++++---------- .../v2023.8.2/paths/updateOrganisation.yaml | 5 +- 2 files changed, 27 insertions(+), 33 deletions(-) diff --git a/openapi/v2023.8.2/bundled.yaml b/openapi/v2023.8.2/bundled.yaml index 1a54135..5203070 100644 --- a/openapi/v2023.8.2/bundled.yaml +++ b/openapi/v2023.8.2/bundled.yaml @@ -1456,31 +1456,7 @@ paths: schema: properties: organisation: - required: - - name - - location - - description - - policyUrl - type: object - properties: - id: - type: string - name: - type: string - description: - type: string - location: - type: string - policyUrl: - type: string - coverImageId: - type: string - coverImageUrl: - type: string - logoImageId: - type: string - logoImageUrl: - type: string + $ref: '#/paths/~1onboard~1organisation/put/responses/200/content/application~1json/schema' required: - organisation type: object @@ -1518,10 +1494,31 @@ paths: content: application/json: schema: - items: - oneOf: - - $ref: '#/paths/~1onboard~1organisation/get/responses/200/content/application~1json/schema/properties/organisation' - type: array + required: + - name + - location + - description + - policyUrl + type: object + properties: + id: + type: string + name: + type: string + description: + type: string + location: + type: string + policyUrl: + type: string + coverImageId: + type: string + coverImageUrl: + type: string + logoImageId: + type: string + logoImageUrl: + type: string description: Updated the organisation security: - BearerAuth: [] diff --git a/openapi/v2023.8.2/paths/updateOrganisation.yaml b/openapi/v2023.8.2/paths/updateOrganisation.yaml index f25d217..3f9363f 100644 --- a/openapi/v2023.8.2/paths/updateOrganisation.yaml +++ b/openapi/v2023.8.2/paths/updateOrganisation.yaml @@ -26,10 +26,7 @@ responses: content: application/json: schema: - items: - oneOf: - - $ref: ../definitions/Organisation.yaml - type: array + $ref: ../definitions/Organisation.yaml description: "Updated the organisation" security: - BearerAuth: []