Skip to content

Edit UI: update director schemas to make postal code optional for specific countries #31955

Closed

Description

@severinbeauvais

(See custom validator work already done in #31953 / Create UI.)

  • Create a custom validator to make postal code optional for the following countries:
    NO_POSTAL_CODE_COUNTRY_CODES = {
    "AO", "AG", "AW", "BS", "BZ", "BJ", "BM", "BO", "BQ", "BW", "BF", "BI",
    "CM", "CF", "TD", "KM", "CG", "CD", "CK", "CI", "CW", "DJ", "DM", "GQ",
    "ER", "FJ", "TF", "GA", "GM", "GH", "GD", "GY", "HM", "HK",
    "KI", "KP", "LY", "MO", "MW", "ML", "MR", "NR",
    "AN", "NU", "QA", "RW", "KN", "ST", "SC", "SL", "SX", "SB", "SO", "SR", "SY",
    "TL", "TG", "TK", "TO", "TT", "TV", "UG", "AE", "VU", "YE", "ZW"
    }
  • Apply the custom validator to mailingAddressSchema and deliveryAddressSchema in OrgPerson.vue (link)
  • Identify and test all affected filings (list them below).
    • affected filing 1
    • affected filing 2
    • etc
  • Add unit tests if it makes sense.

Activity

  1. added
    Entities Team
    on Jan 7, 2026
  2. changed the title [-]Copy of Filings UI: update director schemas to make postal code optional for specific countries[/-] [+]Edit UI: update director schemas to make postal code optional for specific countries[/+] on Jan 7, 2026
  3. severinbeauvais commented on Feb 10, 2026

    @severinbeauvais
    CollaboratorAuthor

    Test Notes

    The following three schemas are declared in Edit UI, with the listed validators:

    1. InCanadaAddressSchema
    2. InBcCanadaAddressSchema
    3. DefaultAddressSchema

    All 3 schema have the following validators:

    • postal code is required except for some countries
    • max length 7 (if address must be in Canada), otherwise 15
    • must be valid in Canada only

    "InCanadaAddressSchema" is not used and therefore cannot be tested.

    "InBcCanadaAddressSchema" can be tested using:

    • org delivery address
    • office delivery address
    • correction or restoration registered mailing address
    • correction or restoration registered delivery address
    • corp records mailing address
    • corp records delivery address

    "DefaultAddressSchema" can be tested using:

    • completing party address
    • org or person mailing address
    • proprietor or partner delivery address
    • director delivery address
    • other person delivery address
    • firm change or firm conversion mailing address
  4. self-assigned this
    on Feb 17, 2026
  5. gunanagar commented on Feb 17, 2026

    @gunanagar
    Collaborator

    Tested all good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities Team

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions