commerceguys / addressing

A PHP addressing library, powered by CLDR and Google's address data.
MIT License
922 stars 135 forks source link

Allow turning off postal code validation in AddressFormatConstraint #207

Closed bojanz closed 10 months ago

bojanz commented 10 months ago

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.