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

🚀💻 – format all "<type> referencing" fields with links #198

Open
botanize opened this issue Dec 5, 2023 · 0 comments
Open

🚀💻 – format all "<type> referencing" fields with links #198

botanize opened this issue Dec 5, 2023 · 0 comments
Labels
💻 code Pertains to the infrastructure code 🚀 feature Adds a new feature - to spec or code

Comments

@botanize
Copy link
Contributor

botanize commented Dec 5, 2023

Describe the feature you want and how it meets your needs or solves a problem
If the title of a field in the spec contains "ID referencing", then the referenced table is formatted as a link. I'd like the same to happen for "Positive integer referencing", or any other " referencing" title.

For example, in the passenger_events schema the title for "trip_stops_sequence" is "Positive integer referencing stop_visits.trip_stop_sequence", and there is no link to stop_visits in the formatted documentation.

Describe the solution you'd like
We currently format two types of references, "referencing GTFS" and "ID referencing". I'd like to expand "ID referencing" to include at least "[Pp]ositive integer referencing", but ideally I'd like to format any type that's referenced by simply checking for "referencing" instead of "ID referencing". Since the GTFS formatter runs and returns before the ID referencing formatter, it should only be formatting references that are not GTFS references.

Describe alternatives you've considered

Additional context

@botanize botanize added 🚀 feature Adds a new feature - to spec or code 💻 code Pertains to the infrastructure code labels Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 code Pertains to the infrastructure code 🚀 feature Adds a new feature - to spec or code
Projects
None yet
Development

No branches or pull requests

1 participant