-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fix hidden field validation #664
Conversation
assertTrue(errors.isEmpty()) | ||
} | ||
|
||
it("passes if all fields are hidden and their container type is deleted") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New test here
type Query { | ||
echo: String | ||
} | ||
""".trimIndent(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reformat
@@ -33,7 +34,7 @@ class NadelFieldValidationTest : DescribeSpec({ | |||
) | |||
|
|||
val errors = validate(fixture) | |||
assert(errors.map { it.message }.isEmpty()) | |||
assertTrue(errors.map { it.message }.isEmpty()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason if you run individual tests with kotlin.assert
it doesn't fail.
Tried to bump Nadel in Central Schema and I found an edge case. It's legal for all fields to be
@hidden
if the type itself is going to be deleted because all references to it are from@hidden
fields.