mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-11 07:42:20 -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:
@@ -27,29 +27,6 @@ personalisation = {
|
||||
}
|
||||
|
||||
|
||||
letter_personalisation = dict(
|
||||
personalisation,
|
||||
properties={
|
||||
"address_line_1": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"validationMessage": "address_line_1 is required"
|
||||
},
|
||||
"address_line_2": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"validationMessage": "address_line_2 is required"
|
||||
},
|
||||
"postcode": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"validationMessage": "postcode is required"
|
||||
},
|
||||
},
|
||||
required=["address_line_1", "address_line_2", "postcode"],
|
||||
)
|
||||
|
||||
|
||||
https_url = {
|
||||
"type": "string",
|
||||
"format": "uri",
|
||||
|
||||
Reference in New Issue
Block a user