Skip to content

Commit

Permalink
[#190] change type to id_type in va_identifier object
Browse files Browse the repository at this point in the history
  • Loading branch information
marisahoenig committed Oct 7, 2020
1 parent 0b66fe2 commit 304c19e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/v2/notifications/notification_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@
"reference": {"type": "string"},
"phone_number": {"type": "string", "format": "phone_number"},
"va_identifier": {"type": "object", "properties": {
"type": {
"id_type": {
"type": "string"
},
"value": {
"type": "string"
}
}},
}, "required": ["id_type", "value"]},
"template_id": uuid,
"personalisation": personalisation,
"scheduled_for": {"type": ["string", "null"], "format": "datetime_within_next_day"},
Expand Down
4 changes: 2 additions & 2 deletions tests/app/v2/notifications/test_notification_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ def test_get_notifications_request_invalid_statuses_and_template_types():
}
valid_va_identifier_json = {
"va_identifier": {
"type": "foo",
"id_type": "foo",
"value": "bar"
},
"template_id": str(uuid.uuid4())
}
valid_phone_number_and_va_identifier_json = {
"phone_number": "6502532222",
"va_identifier": {
"type": "foo",
"id_type": "foo",
"value": "bar"
},
"template_id": str(uuid.uuid4())
Expand Down

0 comments on commit 304c19e

Please sign in to comment.