File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -261,12 +261,13 @@ def assert_directive(directive: Any) -> GraphQLDirective:
261
261
description = "Exposes a URL that specifies the behavior of this scalar." ,
262
262
)
263
263
264
- # Used to declare an Input Object as a OneOf Input Objects .
264
+ # Used to indicate an Input Object is a OneOf Input Object .
265
265
GraphQLOneOfDirective = GraphQLDirective (
266
266
name = "oneOf" ,
267
267
locations = [DirectiveLocation .INPUT_OBJECT ],
268
268
args = {},
269
- description = "Indicates an Input Object is a OneOf Input Object." ,
269
+ description = "Indicates exactly one field must be supplied"
270
+ " and this field must not be `null`." ,
270
271
)
271
272
272
273
specified_directives : tuple [GraphQLDirective , ...] = (
Original file line number Diff line number Diff line change @@ -771,7 +771,9 @@ def prints_introspection_schema():
771
771
url: String!
772
772
) on SCALAR
773
773
774
- """Indicates an Input Object is a OneOf Input Object."""
774
+ """
775
+ Indicates exactly one field must be supplied and this field must not be `null`.
776
+ """
775
777
directive @oneOf on INPUT_OBJECT
776
778
777
779
"""
You can’t perform that action at this time.
0 commit comments