Skip to content

Include postal code example per country/subdivision #127

@Etroid

Description

@Etroid

Problem/Motivation

There are many scenarios in which the postal code validation return ambiguous error messages. It might be useful to provide some additional context through a valid example. Google provides a list of valid postal code examples under the zipex property. As a first step to improve postal code validation, we would need to include this property in the addressing resources.

Example

What's involved:

  • Update generate_address_data.php to include zipex on both country and subdivision level
  • Add property postalCodeExample to AddressFormat class
  • ?

Related: #31

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions