Skip to content

Allow to add optional args to fields implemented from interfaces#1493

Merged
IvanGoncharov merged 1 commit intographql:masterfrom
IvanGoncharov:nonNullSchemaValidation
Aug 29, 2018
Merged

Allow to add optional args to fields implemented from interfaces#1493
IvanGoncharov merged 1 commit intographql:masterfrom
IvanGoncharov:nonNullSchemaValidation

Conversation

@IvanGoncharov
Copy link
Copy Markdown
Member

I reviewed all isNonNullType calls and it the last one that needs to be fixed to complete #1274

Copy link
Copy Markdown
Contributor

@mjmahone mjmahone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single typo nit, but this is great. Thank you!

Comment thread src/type/__tests__/validation-test.js Outdated
'field AnotherInterface.field.',
locations: [{ line: 11, column: 44 }, { line: 7, column: 9 }],
'Object field AnotherObject.field includes required argument ' +
'requiredArg that is missing it the Interface field ' +
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'requiredArg that is missing from the Interface field '

Comment thread src/type/validate.js Outdated
`is of required type ${inspect(objectArg.type)} but is not also ` +
`provided by the Interface field ${iface.name}.${fieldName}.`,
`Object field ${object.name}.${fieldName} includes required ` +
`argument ${argName} that is missing it the Interface field ` +
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

argument ${argName} that is missing from the Interface field

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mjmahone I'm grammatically challenged 😄
so I very appreciate your reviews 👍

@IvanGoncharov IvanGoncharov force-pushed the nonNullSchemaValidation branch from b5ac3d3 to 87fcec8 Compare August 29, 2018 22:12
@IvanGoncharov
Copy link
Copy Markdown
Member Author

@mjmahone Fixed.

@IvanGoncharov IvanGoncharov merged commit f4dee28 into graphql:master Aug 29, 2018
@IvanGoncharov IvanGoncharov deleted the nonNullSchemaValidation branch September 3, 2018 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants