Skip to content

Commit f5f4019

Browse files
authoredApr 30, 2021
Fixed introspection utils to support that IsRepeatable is not being specified on directives (#3629)
1 parent 6a79394 commit f5f4019

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/HotChocolate/Utilities/src/Utilities.Introspection/IntrospectionDeserializer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ private static DirectiveDefinitionNode CreateDirectiveDefinition(
261261
null,
262262
new NameNode(directive.Name),
263263
CreateDescription(directive.Description),
264-
directive.IsRepeatable,
264+
directive.IsRepeatable ?? false,
265265
CreateInputValues(directive.Args),
266266
locations
267267
);

‎src/HotChocolate/Utilities/src/Utilities.Introspection/Models/Directive.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal class Directive
1111
public string Description { get; set; }
1212
public ICollection<InputField> Args { get; set; }
1313
public ICollection<string> Locations { get; set; }
14-
public bool IsRepeatable { get; set; }
14+
public bool? IsRepeatable { get; set; }
1515
public bool OnOperation { get; set; }
1616
public bool OnFragment { get; set; }
1717
public bool OnField { get; set; }

0 commit comments

Comments
 (0)
Please sign in to comment.