From 23b783cb0c119b36e3ffb573686e8e95dfc5529a Mon Sep 17 00:00:00 2001 From: George J Padayatti Date: Tue, 24 Oct 2023 11:52:33 +0530 Subject: [PATCH] Upd: Add and fields in list data agreement records response Signed-off-by: George J Padayatti --- openapi/v2023.8.2/bundled.yaml | 25 ++++++++++++++++++- .../ListDataAgreementRecordExtras.yaml | 23 +++++++++++++++++ .../paths/auditDataAgreementRecordsList.yaml | 4 ++- 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 openapi/v2023.8.2/definitions/ListDataAgreementRecordExtras.yaml diff --git a/openapi/v2023.8.2/bundled.yaml b/openapi/v2023.8.2/bundled.yaml index 20ad0bc..dc9e882 100644 --- a/openapi/v2023.8.2/bundled.yaml +++ b/openapi/v2023.8.2/bundled.yaml @@ -4046,7 +4046,30 @@ paths: properties: dataAgreementRecords: items: - $ref: '#/paths/~1service~1individual~1record~1data-agreement-record/post/responses/200/content/application~1json/schema/properties/dataAgreementRecord' + allOf: + - $ref: '#/paths/~1service~1individual~1record~1data-agreement-record/post/responses/200/content/application~1json/schema/properties/dataAgreementRecord' + - type: object + properties: + timestamp: + type: string + dataAgreement: + type: object + properties: + purpose: + type: string + description: Name of purpose + lawfulBasis: + type: string + format: '' + example: '' + description: Lawful basis of the agreement - consent / legal_obligation / contract / vital_interest / public_task / legitimate_interest + enum: + - consent + - legal_obligation + - contract + - vital_interest + - public_task + - legitimate_interest type: array pagination: $ref: '#/components/schemas/Pagination' diff --git a/openapi/v2023.8.2/definitions/ListDataAgreementRecordExtras.yaml b/openapi/v2023.8.2/definitions/ListDataAgreementRecordExtras.yaml new file mode 100644 index 0000000..30ec42a --- /dev/null +++ b/openapi/v2023.8.2/definitions/ListDataAgreementRecordExtras.yaml @@ -0,0 +1,23 @@ +type: object +properties: + timestamp: + type: string + dataAgreement: + type: object + properties: + purpose: + type: string + description: Name of purpose + + lawfulBasis: + type: string + format: "" + example: "" + description: "Lawful basis of the agreement - consent / legal_obligation / contract / vital_interest / public_task / legitimate_interest" + enum: + - consent + - legal_obligation + - contract + - vital_interest + - public_task + - legitimate_interest diff --git a/openapi/v2023.8.2/paths/auditDataAgreementRecordsList.yaml b/openapi/v2023.8.2/paths/auditDataAgreementRecordsList.yaml index fdc8b0f..c942a5a 100644 --- a/openapi/v2023.8.2/paths/auditDataAgreementRecordsList.yaml +++ b/openapi/v2023.8.2/paths/auditDataAgreementRecordsList.yaml @@ -16,7 +16,9 @@ responses: properties: dataAgreementRecords: items: - $ref: ../definitions/DataAgreementRecord.yaml + allOf: + - $ref: ../definitions/DataAgreementRecord.yaml + - $ref: "../definitions/ListDataAgreementRecordExtras.yaml" type: array pagination: $ref: "../definitions/Pagination.yaml"