Skip to content

Divisions: allow True for both is_land and is_territorial #542

@stepps00

Description

division_area.py uses @radio_group("is_land", "is_territorial") which requires exactly one of these fields to be True. But the YAML schema uses anyOf, meaning both can be True, which is correct since a landlocked country has the same geometry for both.

It doesn't look like an existing decorator matches this so a new decorator would be required (@require_any_true?). Then division_area.py would need to be updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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