Skip to content

Empty strings and quotation marks #583

@gtfs0

Description

@gtfs0

The reference is unclear about the handling of empty strings. I conclude that an empty string as a field value shall be interpreted as if that field don't have a value (except for enums where empty has a specified meaning), but it needs to be clarified in the reference. The reference should also clarify that a required field must not contain an empty string and that an ID must not be empty (for example, in routes.txt, if network_id is an empty string, it means that the route has no network_id, not that it has an empty string as network_id.

What if a field contains two quotation marks and nothing more ("")? Most parsers would probably handle that the same way as an empty string (no value), but it should be clarified in the reference.

By the way, is it allowed to enclose a field value with quotation marks even if the field value doesn't contain quotation marks or commas? The reference doesn't specify that. For example "field value" (with quotation marks), should that be interpreted as field value (without quotation marks) or is that an error? This should also be clarified in the reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Change type: FunctionalRefers to modifications that significantly affect specification functionalities.GTFS ScheduleIssues and Pull Requests that focus on GTFS Schedule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions