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

refactor: Make valueNode of ScalarCoercion required #63

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

stuebingerb
Copy link
Owner

The valueNode of ScalarCoercion was nullable, leading to explicit null cases in various places. However, the code always calls it with a non-null ValueNode, cf. https://github.com/stuebingerb/KGraphQL/blob/main/kgraphql/src/main/kotlin/com/apurebase/kgraphql/schema/scalar/Coercion.kt#L25

Base automatically changed from fix/fix-input-validation to main November 8, 2024 08:21
@stuebingerb stuebingerb dismissed mervyn-mccreight’s stale review November 8, 2024 08:21

The base branch was changed.

The `valueNode` of `ScalarCoercion` was nullable, leading to explicit
`null` cases in various places. However, the code always calls it with
a non-null `ValueNode`, cf. https://github.com/stuebingerb/KGraphQL/blob/main/kgraphql/src/main/kotlin/com/apurebase/kgraphql/schema/scalar/Coercion.kt#L25
@stuebingerb stuebingerb force-pushed the refactor/required-valuenode-in-scalarcoercion branch from d4e4b5b to f3b9aeb Compare November 8, 2024 08:22
@stuebingerb stuebingerb merged commit 097d78d into main Nov 8, 2024
4 checks passed
@stuebingerb stuebingerb deleted the refactor/required-valuenode-in-scalarcoercion branch November 8, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants