diff --git a/test/unit/should_support_custom_scalars/expected.kt b/test/unit/should_support_custom_scalars/expected.kt index 4543a7a..7cd6555 100644 --- a/test/unit/should_support_custom_scalars/expected.kt +++ b/test/unit/should_support_custom_scalars/expected.kt @@ -6,11 +6,13 @@ import com.expediagroup.graphql.generator.annotations.* data class MyScalarType( val idField: com.expediagroup.graphql.generator.scalars.ID? = null, val field: java.net.URL? = null, - val field2: java.net.URL + val field2: java.net.URL, + val field3: List = emptyList() ) @GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.OBJECT]) data class MyCustomScalarType( val field: String? = null, - val field2: String + val field2: String, + val field3: List = emptyList() ) diff --git a/test/unit/should_support_custom_scalars/schema.graphql b/test/unit/should_support_custom_scalars/schema.graphql index ae7aaa3..c287932 100644 --- a/test/unit/should_support_custom_scalars/schema.graphql +++ b/test/unit/should_support_custom_scalars/schema.graphql @@ -4,6 +4,7 @@ type MyScalarType { idField: ID field: URL field2: URL! + field3: [URL!] } scalar CustomScalar @@ -11,4 +12,5 @@ scalar CustomScalar type MyCustomScalarType { field: CustomScalar field2: CustomScalar! + field3: [CustomScalar!] }