mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 00:41:35 -05:00
Start allowing any three lines in addresses
This is part of moving away from `postcode` and towards `address line 7` We think it will be easier for people to map their existing data to our API if we let them fill in any 3 lines, instead of requiring at least 1, 2, and postcode specifically.
This commit is contained in:
@@ -4,7 +4,7 @@ from app.models import (
|
||||
NOTIFICATION_STATUS_LETTER_RECEIVED,
|
||||
TEMPLATE_TYPES
|
||||
)
|
||||
from app.schema_validation.definitions import (uuid, personalisation, letter_personalisation)
|
||||
from app.schema_validation.definitions import (uuid, personalisation)
|
||||
|
||||
|
||||
template = {
|
||||
@@ -226,7 +226,7 @@ post_letter_request = {
|
||||
"properties": {
|
||||
"reference": {"type": "string"},
|
||||
"template_id": uuid,
|
||||
"personalisation": letter_personalisation
|
||||
"personalisation": personalisation
|
||||
},
|
||||
"required": ["template_id", "personalisation"],
|
||||
"additionalProperties": False
|
||||
|
||||
Reference in New Issue
Block a user