Skip to content

Commit

Permalink
Only require evidence key in reduced-fee-requested when 'upload' (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawx authored Nov 10, 2023
1 parent 162cf6e commit 0f00367
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion domains/POAS/events/reduced-fee-requested/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,11 @@
"enum": ["upload", "post"]
}
},
"required": ["uid", "requestType", "evidence", "evidenceDelivery"]
"if": {
"properties": {
"evidenceDelivery": { "const": "upload" }
}
},
"then": { "required": ["uid", "requestType", "evidence", "evidenceDelivery"] },
"else": { "required": ["uid", "requestType", "evidenceDelivery"] }
}

0 comments on commit 0f00367

Please sign in to comment.