Skip to content

Question regarding upgrade from 0.8.4 to 1.0 #105

@torkiljohnsen

Description

@torkiljohnsen

With the release of 1.0 I started looking at upgrading from 0.8.4. Ran into some issues and have some questions too:

1. Given/family name shouldn't be required

Given name and family name are always required now it seems, yet in Norway it is perfectly legal to send something to an organization and use for example this address format:

Organization
Street name
Postalcode LOCALITY

For instance:

Acme Inc.
Storgata 1
1234 OSLO

There is no need to specify a person; you can very well address a shipment to an organization. So you have to specify a recipient, but you are free to use organization name for that purpose too.

Is it possible to adjust the address contraint/validation to require either organization OR given/family name?

2. Address line 1 shouldn't be required

Some addresses in Norway don't require an address line 1 (see https://www.posten.no/sende/klargjoring/adressering). This is for instance a valid format:

Given name Family name
Postalcode LOCALITY

I guess this is a minor issue that can be easily fixed in the AddressFormatRepository class, or is requiring address line 1 also intentional?

3. Got an error when trying to use additional name

Seems like the additional name field is not in use by the address formatter, which is probably why I get an error saying the field should be blank when I try to use it in an address. Sorry for not providing code to reproduce this, I'm just wondering if this is expected behavior?

Example NO format:
%givenName %familyName\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality

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