File tree 2 files changed +6
-2
lines changed
test/unit/should_support_custom_scalars 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,13 @@ import com.expediagroup.graphql.generator.annotations.*
6
6
data class MyScalarType (
7
7
val idField : com.expediagroup.graphql.generator.scalars.ID ? = null ,
8
8
val field : java.net.URL ? = null ,
9
- val field2 : java.net.URL
9
+ val field2 : java.net.URL ,
10
+ val field3 : List <java.net.URL > = emptyList()
10
11
)
11
12
12
13
@GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations .Locations .OBJECT ])
13
14
data class MyCustomScalarType (
14
15
val field : String? = null ,
15
- val field2 : String
16
+ val field2 : String ,
17
+ val field3 : List <String > = emptyList()
16
18
)
Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ type MyScalarType {
4
4
idField : ID
5
5
field : URL
6
6
field2 : URL !
7
+ field3 : [URL ! ]
7
8
}
8
9
9
10
scalar CustomScalar
10
11
11
12
type MyCustomScalarType {
12
13
field : CustomScalar
13
14
field2 : CustomScalar !
15
+ field3 : [CustomScalar ! ]
14
16
}
You can’t perform that action at this time.
0 commit comments