Skip to content

Commit

Permalink
Upd: Add and fields in list data agreement records response
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Oct 24, 2023
1 parent 2ab6b5e commit 23b783c
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
25 changes: 24 additions & 1 deletion openapi/v2023.8.2/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
23 changes: 23 additions & 0 deletions openapi/v2023.8.2/definitions/ListDataAgreementRecordExtras.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion openapi/v2023.8.2/paths/auditDataAgreementRecordsList.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 23b783c

Please sign in to comment.