File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,7 @@ pub enum DirectiveLocation {
401401 EnumValue ,
402402 InputObject ,
403403 InputFieldDefinition ,
404+ VariableDefinition ,
404405}
405406
406407#[ derive( Debug , Clone , PartialEq ) ]
@@ -451,6 +452,7 @@ impl DirectiveLocation {
451452 EnumValue => "ENUM_VALUE" ,
452453 InputObject => "INPUT_OBJECT" ,
453454 InputFieldDefinition => "INPUT_FIELD_DEFINITION" ,
455+ VariableDefinition => "VARIABLE_DEFINITION" ,
454456 }
455457 }
456458
@@ -478,6 +480,7 @@ impl DirectiveLocation {
478480 | EnumValue
479481 | InputObject
480482 | InputFieldDefinition
483+ | VariableDefinition
481484 => false ,
482485 }
483486 }
@@ -517,6 +520,7 @@ impl FromStr for DirectiveLocation {
517520 "ENUM_VALUE" => EnumValue ,
518521 "INPUT_OBJECT" => InputObject ,
519522 "INPUT_FIELD_DEFINITION" => InputFieldDefinition ,
523+ "VARIABLE_DEFINITION" => VariableDefinition ,
520524 _ => return Err ( InvalidDirectiveLocation ) ,
521525 } ;
522526
Original file line number Diff line number Diff line change @@ -50,4 +50,5 @@ fn roundtrip2(filename: &str) {
5050#[ test] fn directive ( ) { roundtrip ( "directive" ) ; }
5151#[ test] fn kitchen_sink ( ) { roundtrip2 ( "kitchen-sink" ) ; }
5252#[ test] fn directive_descriptions ( ) { roundtrip2 ( "directive_descriptions" ) ; }
53+ #[ test] fn directive_variable_definition ( ) { roundtrip ( "directive_variable_definition" ) ; }
5354#[ test] fn repeatable ( ) { roundtrip ( "repeatable" ) }
Original file line number Diff line number Diff line change 1+ directive @configurable on VARIABLE_DEFINITION
You can’t perform that action at this time.
0 commit comments