From eda55b72d29c016e402ba9ee9ab747d46897fc92 Mon Sep 17 00:00:00 2001 From: George J Padayatti Date: Wed, 1 Nov 2023 03:45:10 +0530 Subject: [PATCH] Upd: Read data attributes for data agreement, list all data attributes and update data attribute by id Signed-off-by: George J Padayatti --- openapi/v2023.8.2/bundled.yaml | 13 +++++++------ .../v2023.8.2/paths/configListDataAttribute.yaml | 2 +- .../configListDataAttributesForDataAgreement.yaml | 9 ++++++--- .../v2023.8.2/paths/configUpdateDataAttribute.yaml | 2 -- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/openapi/v2023.8.2/bundled.yaml b/openapi/v2023.8.2/bundled.yaml index 09de825..a577b10 100644 --- a/openapi/v2023.8.2/bundled.yaml +++ b/openapi/v2023.8.2/bundled.yaml @@ -1045,11 +1045,14 @@ paths: schema: type: object properties: - dataAgreement: - $ref: '#/components/schemas/DataAgreement' dataAttributes: items: - $ref: '#/components/schemas/DataAgreement/properties/dataAttributes/items' + allOf: + - $ref: '#/components/schemas/DataAgreement/properties/dataAttributes/items' + - type: object + properties: + dataAgreement: + $ref: '#/paths/~1config~1data-agreements~1data-attributes/get/responses/200/content/application~1json/schema/properties/dataAttributes/items/allOf/1/properties/dataAgreement' type: array pagination: $ref: '#/components/schemas/Pagination' @@ -1096,8 +1099,6 @@ paths: properties: dataAttribute: $ref: '#/components/schemas/DataAgreement/properties/dataAttributes/items' - revision: - $ref: '#/components/schemas/Revision' description: '' '400': description: bad input parameter @@ -1136,7 +1137,7 @@ paths: - $ref: '#/components/schemas/DataAgreement/properties/dataAttributes/items' - type: object properties: - dataAgreements: + dataAgreement: type: array items: type: object diff --git a/openapi/v2023.8.2/paths/configListDataAttribute.yaml b/openapi/v2023.8.2/paths/configListDataAttribute.yaml index 9cb3ee3..6b851f6 100644 --- a/openapi/v2023.8.2/paths/configListDataAttribute.yaml +++ b/openapi/v2023.8.2/paths/configListDataAttribute.yaml @@ -18,7 +18,7 @@ responses: - $ref: ../definitions/DataAttribute.yaml - type: object properties: - dataAgreements: + dataAgreement: $ref: ../definitions/DataAttributeExtras.yaml type: array pagination: diff --git a/openapi/v2023.8.2/paths/configListDataAttributesForDataAgreement.yaml b/openapi/v2023.8.2/paths/configListDataAttributesForDataAgreement.yaml index 4544e15..ba2b213 100644 --- a/openapi/v2023.8.2/paths/configListDataAttributesForDataAgreement.yaml +++ b/openapi/v2023.8.2/paths/configListDataAttributesForDataAgreement.yaml @@ -11,11 +11,14 @@ responses: schema: type: object properties: - dataAgreement: - $ref: ../definitions/DataAgreement.yaml dataAttributes: items: - $ref: ../definitions/DataAttribute.yaml + allOf: + - $ref: ../definitions/DataAttribute.yaml + - type: object + properties: + dataAgreement: + $ref: ../definitions/DataAttributeExtras.yaml type: array pagination: $ref: "../definitions/Pagination.yaml" diff --git a/openapi/v2023.8.2/paths/configUpdateDataAttribute.yaml b/openapi/v2023.8.2/paths/configUpdateDataAttribute.yaml index d8af49d..10eb237 100644 --- a/openapi/v2023.8.2/paths/configUpdateDataAttribute.yaml +++ b/openapi/v2023.8.2/paths/configUpdateDataAttribute.yaml @@ -22,8 +22,6 @@ responses: properties: dataAttribute: $ref: ../definitions/DataAttribute.yaml - revision: - $ref: ../definitions/Revision.yaml description: "" "400": description: bad input parameter