-
Notifications
You must be signed in to change notification settings - Fork 0
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: