Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CAT-1447] Fix applicant consents #126

Merged
merged 5 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion schemas/applicants/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ applicant_request:
type: object
properties:
consents:
$ref: ../consents/consents_builder.yaml
type: array
description: The applicant's consents
items:
$ref: "#/applicant_consent"
address:
$ref: ../address/address_builder.yaml
location:
Expand Down Expand Up @@ -83,3 +86,21 @@ applicant_last_name:
type: string
pattern: ^[^!#$%*=<>;{}"]*$
description: The applicant's surname

applicant_consent:
type: object
required:
- name
- granted
properties:
name:
$ref: "#/applicant_consent_name"
granted:
type: boolean

applicant_consent_name:
type: string
enum:
- privacy_notices_read
- ssn_verification
- phone_number_verification
2 changes: 0 additions & 2 deletions schemas/consents/consents.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions schemas/consents/consents_builder.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions schemas/consents/definitions.yaml

This file was deleted.