★ wanayoo — archive 1999 https://github.com/graphql-java/graphql-java/pull/1589Nouvelle recherche | Portail wanayoo
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

Non-null input object fields with default values should be valid #1589

Merged

Conversation

@craigkost
Copy link

@craigkost craigkost commented Jul 3, 2019

Update query validation to take default value for input object fields into account.

This should not break existing functionality but instead allow additional requests to pass validation. It should improve compliance with graphql/graphql-spec#418

Addresses: #1588

@@ -11,16 +11,28 @@ import static graphql.schema.idl.TypeRuntimeWiring.newTypeWiring
// See https://github.com/facebook/graphql/pull/418
class IssueNonNullDefaultAttribute extends Specification {
def spec = '''
input Locale {

This comment has been minimized.

@craigkost

craigkost Jul 3, 2019
Author

Not sure if it is acceptable to extend this test or if you would prefer a new test class added.

Copy link
Member

@bbakerman bbakerman left a comment

Thanks for this. we will look a little more into the base problem but I think this looks pretty good as an improvement to the code base

@bbakerman bbakerman merged commit ac5bc70 into graphql-java:master Sep 7, 2019
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@bbakerman bbakerman added this to the 14.0 milestone Sep 7, 2019
andimarek added a commit that referenced this pull request Jan 16, 2020
bbakerman added a commit that referenced this pull request Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.