Skip to content

Inconsistent serialisation of English/Welsh names #12

@giacecco

Description

@giacecco

Minor. When an address has no locality, the JSON contains "locality":{"name":{"en":[null],"cy":[]},"url":null} rather than "locality":{"name":{"en":[],"cy":[]},"url":null}.

Someone may argue that locality should not be defined at all in cases like that, but I believe @pezholio at the time suggested that it is best practice to do like this, despite the issue of making the JSON even bigger than it is already. I can live with that :-)

... but the inconsistency between [ null ] and [ ] could be tricky to developers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions