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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Throw exception on multi-level interface #420
Throw exception on multi-level interface #420
Conversation
I would also be fine not merging this and just keeping the implementation today that only includes the first level |
Codecov Report
@@ Coverage Diff @@
## master #420 +/- ##
============================================
- Coverage 97.81% 97.74% -0.07%
- Complexity 325 326 +1
============================================
Files 105 106 +1
Lines 1236 1242 +6
Branches 204 207 +3
============================================
+ Hits 1209 1214 +5
Misses 7 7
- Partials 20 21 +1
Continue to review full report at Codecov.
|
Resolves ExpediaGroup#419 According to the spec, an interface can not implement another interface. This is not caught by our schema generator but instead just returns the first level interface as the type in the schema. We are now throwing an exception to help translate this understanding of GraphQL through the Kotlin code
8137641
to
09deb24
Compare
Question for the team? Do we need to look multiple levels deep when resolving interfaces. Currently we only look one level from the class |
I think supporting generation of the schema based on |
@dariuszkuc Updated to return multiple levels deep now |
* Throw exception on multi-level interface Resolves ExpediaGroup#419 According to the spec, an interface can not implement another interface. This is not caught by our schema generator but instead just returns the first level interface as the type in the schema. We are now throwing an exception to help translate this understanding of GraphQL through the Kotlin code * Return superclasses from multiple levels deep
馃摑 Description
According to the spec, an interface can not implement another interface. This is not caught by our schema generator but instead just returns the first level interface as the type in the schema. We are now throwing an exception to help translate this understanding of GraphQL through the Kotlin code
Is this a breaking change? Someone may be using 1.0.0 today and just by updating their version they will have to fix something.
馃敆 Related Issues
Resolves #419