Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flex: unknown_geo_json_element #1930

Open
emmambd opened this issue Dec 2, 2024 · 1 comment · May be fixed by #1970 or #1973
Open

Flex: unknown_geo_json_element #1930

emmambd opened this issue Dec 2, 2024 · 1 comment · May be fixed by #1970 or #1973
Assignees
Labels
flex Rules and rule changes related to GTFS-Flex. new rule New rule to be added status: Ready An issue that is ready to be worked on.

Comments

@emmambd
Copy link
Contributor

emmambd commented Dec 2, 2024

Describe the problem

Same rule as https://gtfs-validator.mobilitydata.org/rules.html#unknown_column-rule for geojson

Describe the new validation rule

Field name Description Type
fieldName The name of the unknown element. string
index The index of the faulty column. integer

Sample GTFS datasets

No response

Severity

No response

Additional context

No response

@emmambd emmambd added flex Rules and rule changes related to GTFS-Flex. new rule New rule to be added status: Needs triage Applied to all new issues labels Dec 2, 2024
@emmambd emmambd added this to the 7.0 Validator Release milestone Dec 2, 2024
@emmambd emmambd added status: Ready An issue that is ready to be worked on. and removed status: Needs triage Applied to all new issues labels Jan 27, 2025
@cka-y cka-y assigned cka-y and qcdyx and unassigned cka-y Jan 29, 2025
@qcdyx
Copy link
Contributor

qcdyx commented Jan 30, 2025

The Gson library does not raise an exception for unknown elements in a JSON file. Instead, it simply ignores any elements that are not explicitly mapped to fields in the target class

@qcdyx qcdyx linked a pull request Feb 5, 2025 that will close this issue
5 tasks
@qcdyx qcdyx linked a pull request Feb 5, 2025 that will close this issue
5 tasks
@qcdyx qcdyx linked a pull request Feb 6, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flex Rules and rule changes related to GTFS-Flex. new rule New rule to be added status: Ready An issue that is ready to be worked on.
Projects
None yet
3 participants