You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/client/codegen/GraphQLQueryRequest.kt
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/client/codegen/InputValueSerializer.kt
+60-46
Original file line number
Diff line number
Diff line change
@@ -35,25 +35,15 @@ import java.time.LocalDate
35
35
importjava.time.LocalDateTime
36
36
importjava.time.LocalTime
37
37
importjava.time.OffsetDateTime
38
-
importjava.util.Currency
39
-
importjava.util.Date
40
-
importjava.util.TimeZone
38
+
importjava.util.*
39
+
importkotlin.reflect.KClass
41
40
importkotlin.reflect.full.allSuperclasses
42
41
importkotlin.reflect.full.hasAnnotation
43
42
importkotlin.reflect.full.memberProperties
44
43
importkotlin.reflect.jvm.isAccessible
45
44
46
-
/**
47
-
* Marks this property invisible for input value serialization.
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-shared-core/src/main/kotlin/com/netflix/graphql/dgs/client/codegen/ProjectionSerializer.kt
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-shared-core/src/test/kotlin/com/netflix/graphql/dgs/client/codegen/InputValueSerializerTest.kt
+20-4
Original file line number
Diff line number
Diff line change
@@ -60,11 +60,27 @@ class InputValueSerializerTest {
60
60
}
61
61
62
62
@Test
63
-
fun`Null values should be skipped`() {
64
-
val movieInput =MovieInput(1)
63
+
fun`Null values should be serialized except when properties of a POJO`() {
64
+
classExamplePojo {
65
+
privateval movieId:String?=null
66
+
privateval movieTitle:String="Bojack Horseman"
67
+
}
65
68
66
-
val serialize =InputValueSerializer(mapOf(DateRange::class.java to DateRangeScalar())).serialize(movieInput)
0 commit comments