diff --git a/app/v2/notifications/notification_schemas.py b/app/v2/notifications/notification_schemas.py index a0e1e1e8c6..631e6b692c 100644 --- a/app/v2/notifications/notification_schemas.py +++ b/app/v2/notifications/notification_schemas.py @@ -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"}, diff --git a/tests/app/v2/notifications/test_notification_schemas.py b/tests/app/v2/notifications/test_notification_schemas.py index 0d2b27bba2..dcec09387a 100644 --- a/tests/app/v2/notifications/test_notification_schemas.py +++ b/tests/app/v2/notifications/test_notification_schemas.py @@ -108,7 +108,7 @@ 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()) @@ -116,7 +116,7 @@ def test_get_notifications_request_invalid_statuses_and_template_types(): valid_phone_number_and_va_identifier_json = { "phone_number": "6502532222", "va_identifier": { - "type": "foo", + "id_type": "foo", "value": "bar" }, "template_id": str(uuid.uuid4())