-
Notifications
You must be signed in to change notification settings - Fork 160
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
extend introspection schema to include oneOf and specifiedByURL #501
extend introspection schema to include oneOf and specifiedByURL #501
Conversation
Hi! Thanks for the PR. Won't that cause a validation error on APIs that don't support these yet? |
@tomhoule, thanks for calling this out; I tested several before submitting the PR; however, after more extensive testing, it seems to be very hit-and-miss. I'll update this PR with something that allows for this to be turned on/off via command flags. I'm unsure about this, and I hope you know the answer. In theory, I should be able to put these behind an Is my understanding of how |
I have pushed the experimental code that puts the IsOneOf behind an |
…ual files for better readability
@tomhoule I've updated the code to remove the included logic; it seems it is not well supported. I've since been able to test various graphql APIs successfully.
This updates the
Like So:
|
@tomhoule, I appreciate that you are busy and doing open source. Above and beyond, your day job isn't full of rewards. I hope you can find some time to review this PR. I want to start contributing more to improve Rust's graphql tooling, hopefully this can alleviate some of the load placed on you. |
Sorry for the delay, it's indeed stressful times right now. The contents of the PR look good to me, thank you for the contribution and the perseverance. Let's merge as soon as CI is green. |
…on_schema.graphql, remove three clippy errors due to needless_lifetimes
I've added a commit to fix the clippy errors and the formatting of the schema and excess newline at the end of one of the files. It should be green now |
Thanks! |
A small proposed change to the introspection query, adding support for two currently proposed directives in the GraphQL spec. They are:
They are both available to read about here