entur / lamassu

Mobility hub
European Union Public License 1.2
5 stars 7 forks source link

Build ID validator for lamassu #316

Closed testower closed 3 months ago

testower commented 11 months ago

Instead of using netex-utils for checking IDs.

* ID - Should be represented as a string that identifies that particular entity. An ID:
    * MUST be unique within like fields (for example, `station_id` MUST be unique among stations)
    * Does not have to be globally unique, unless otherwise specified
    * MUST be in the ASCII printable character range, space excluded (0x21 to 0x7E) https://en.wikipedia.org/wiki/ASCII#Printable_characters *(as of v3.0-RC2)*
    * SHOULD be restricted to `A-Z`, `a-z`, `0-9` and `.@:/_-` *(as of v3.0-RC2)*
    * MUST be persistent for a given entity (station, plan, etc.). An exception is `vehicle_id`, which MUST NOT be persistent for privacy reasons (see `vehicle_status.json`). *(as of v2.0)*