Right now AddressFormatConstraint and its validator are all or nothing, meaning that it is not possible to turn off specific parts of the validation logic. Meanwhile, on the Drupal side there is a long-standing feature request to allow turning off postal code validation.
So, let's add that option to the constraint and its validator, so that Drupal can implement the UI side of it.
Right now AddressFormatConstraint and its validator are all or nothing, meaning that it is not possible to turn off specific parts of the validation logic. Meanwhile, on the Drupal side there is a long-standing feature request to allow turning off postal code validation.
So, let's add that option to the constraint and its validator, so that Drupal can implement the UI side of it.