Skip to content

Commit d660784

Browse files
committed
forces a copy of the byte slice
1 parent 8fd064b commit d660784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router/pkg/schemaloader/loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func extractOperationDescription(doc *ast.Document) string {
192192
if ref.Kind == ast.NodeKindOperationDefinition {
193193
opDef := doc.OperationDefinitions[ref.Ref]
194194
if opDef.Description.IsDefined && opDef.Description.Content.Length() > 0 {
195-
description := doc.Input.ByteSliceString(opDef.Description.Content)
195+
description := string(doc.Input.ByteSlice(opDef.Description.Content))
196196
return strings.TrimSpace(description)
197197
}
198198
return ""

0 commit comments

Comments
 (0)