Skip to content

Add a global property Location to save 780 lines in papiNet-API.yaml #264

@larsolofsson

Description

@larsolofsson

shipFromLocation and ShipToLocation have many occurences in existing schemas and would also be common in future schemas.

shipFromLocation and ShipToLocation have the same properties and the same enumerations of type. It will be the same in the future because if you ship to a location then you might also need to ship from that location.

By having a reference to a global property Location for shipFromLocation and ShipToLocation the number of lines in papiNet-API.yaml would decrease with 780 lines. The schema would also be easier to read.

storageLocation will still be locally defined because enumerations of type is not the same as for shipFromLocation and ShipToLocation. Enumeration BorderCrossing of the type is not specified in storageLocation.
There are only 2 occurences of storageLocation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Done Ready for ReviewThe change is implemented and ready for review.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions