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

MLPAB-1552: Attorney moving from paper to online #179

Merged
merged 7 commits into from
Apr 25, 2024
Merged
11 changes: 1 addition & 10 deletions docs/schemas/2024-04/donor-details.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,7 @@
}
],
"type": "object",
"required": ["dateOfBirth", "email", "status", "channel"],
"if": {
"required": ["channel"],
"properties": {
"channel": { "const": "online" }
}
},
"then": {
"required": ["email"]
},
"required": ["dateOfBirth", "email", "status"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but as Greg says, you may want to remove email (and the existing validation in create) so you can do the consumer side

"properties": {
"dateOfBirth": {
"type": "string",
Expand Down