-
-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Labels
bugSomething isn't workingSomething isn't workinghelp-wantedExtra attention is neededExtra attention is needed
Description
Issue Description
When a field of type Int!, Boolean!, Float! are declared the codegen use the corresponding primitive type.
While using generated client model if a mandatory integer field is not set the generated mutation will send 0 whereas a validation error should have bean thrown.
Steps to Reproduce
send a mutation query for a input having field with the above mentioned types without filling the values.
Expected Result
Fails with Validation error server side.
Actual Result
Primitive types have a default value. The generated query will have those values when none where provided
Your Environment and Setup
- graphql-java-codegen version: 5.5.0
- Build tool: Gradle
============
Primitive types should be removed. The issue might also happen to queries with parameters.
esfomeado
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp-wantedExtra attention is neededExtra attention is needed