graphql / graphiql

GraphiQL & the GraphQL LSP Reference Ecosystem for building browser & IDE tools.
MIT License
16.11k stars 1.73k forks source link

language support for `@oneOf` #3769

Open acao opened 2 months ago

acao commented 2 months ago

Resolves #3678

Requires reverting https://github.com/graphql/graphiql/pull/3682

changeset-bot[bot] commented 2 months ago

⚠️ No Changeset found

Latest commit: b65cda9871e69d1dc0f1c580675f1cc14a752fff

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 65.40%. Comparing base (484a9ad) to head (b65cda9). Report is 9 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/graphql/graphiql/pull/3769/graphs/tree.svg?width=650&height=150&src=pr&token=XdBgmoWsyv&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=graphql)](https://app.codecov.io/gh/graphql/graphiql/pull/3769?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=graphql) ```diff @@ Coverage Diff @@ ## main #3769 +/- ## ========================================== + Coverage 65.32% 65.40% +0.07% ========================================== Files 122 122 Lines 7003 7019 +16 Branches 2260 2247 -13 ========================================== + Hits 4575 4591 +16 Misses 2411 2411 Partials 17 17 ``` | [Files with missing lines](https://app.codecov.io/gh/graphql/graphiql/pull/3769?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=graphql) | Coverage Δ | | |---|---|---| | [packages/graphiql-react/src/schema.tsx](https://app.codecov.io/gh/graphql/graphiql/pull/3769?src=pr&el=tree&filepath=packages%2Fgraphiql-react%2Fsrc%2Fschema.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=graphql#diff-cGFja2FnZXMvZ3JhcGhpcWwtcmVhY3Qvc3JjL3NjaGVtYS50c3g=) | `82.69% <ø> (ø)` | | | [packages/graphiql/test/schema.js](https://app.codecov.io/gh/graphql/graphiql/pull/3769?src=pr&el=tree&filepath=packages%2Fgraphiql%2Ftest%2Fschema.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=graphql#diff-cGFja2FnZXMvZ3JhcGhpcWwvdGVzdC9zY2hlbWEuanM=) | `42.66% <100.00%> (+4.09%)` | :arrow_up: | | [...ervice/src/interface/getAutocompleteSuggestions.ts](https://app.codecov.io/gh/graphql/graphiql/pull/3769?src=pr&el=tree&filepath=packages%2Fgraphql-language-service%2Fsrc%2Finterface%2FgetAutocompleteSuggestions.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=graphql#diff-cGFja2FnZXMvZ3JhcGhxbC1sYW5ndWFnZS1zZXJ2aWNlL3NyYy9pbnRlcmZhY2UvZ2V0QXV0b2NvbXBsZXRlU3VnZ2VzdGlvbnMudHM=) | `86.12% <100.00%> (+0.29%)` | :arrow_up: | | [...graphql-language-service/src/parser/getTypeInfo.ts](https://app.codecov.io/gh/graphql/graphiql/pull/3769?src=pr&el=tree&filepath=packages%2Fgraphql-language-service%2Fsrc%2Fparser%2FgetTypeInfo.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=graphql#diff-cGFja2FnZXMvZ3JhcGhxbC1sYW5ndWFnZS1zZXJ2aWNlL3NyYy9wYXJzZXIvZ2V0VHlwZUluZm8udHM=) | `83.78% <100.00%> (+0.33%)` | :arrow_up: |