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

Rework Type Generation #2

Open
danthonywalker opened this issue Nov 12, 2023 · 0 comments
Open

Rework Type Generation #2

danthonywalker opened this issue Nov 12, 2023 · 0 comments

Comments

@danthonywalker
Copy link
Contributor

Currently, types are generated by hitting the REST API pseudo-randomly and using the responses to generate types. This is extremely inefficient (both in time and use of rate limits) and does not cover every response case,

Transitland provides schemas in the form of GraphQL objects.
https://github.com/interline-io/transitland-server/tree/main/schema

The REST API uses GraphQL internally which means these schemas should be identical to the REST client. Similar to the transitland-gql-client project, this project should automatically derive types on any schema update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant