File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
GraphQLParser.Tests/Visitors Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 11<Project >
22
33 <PropertyGroup >
4- <VersionPrefix >8 .0.0 -preview</VersionPrefix >
4+ <VersionPrefix >9 .0.1 -preview</VersionPrefix >
55 <LangVersion >latest</LangVersion >
66 <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
77 <NoWarn >$(NoWarn);CA1707</NoWarn >
Original file line number Diff line number Diff line change @@ -641,6 +641,19 @@ query q(
641641$a: Int) {
642642 x
643643}
644+ """ ) ]
645+ [ InlineData ( 49 ,
646+ """
647+ "description"
648+ schema {
649+ query: Query
650+ }
651+ """ ,
652+ """
653+ "description"
654+ schema {
655+ query: Query
656+ }
644657""" ) ]
645658 public async Task SDLPrinter_Should_Print_Document (
646659 int number ,
Original file line number Diff line number Diff line change @@ -607,7 +607,7 @@ protected override async ValueTask VisitSchemaDefinitionAsync(GraphQLSchemaDefin
607607 {
608608 await VisitAsync ( schemaDefinition . Comments , context ) . ConfigureAwait ( false ) ;
609609 await VisitAsync ( schemaDefinition . Description , context ) . ConfigureAwait ( false ) ;
610- await context . WriteAsync ( "schema" ) . ConfigureAwait ( false ) ;
610+ await VisitAsync ( LiteralNode . Wrap ( "schema" ) , context ) . ConfigureAwait ( false ) ;
611611 await VisitAsync ( schemaDefinition . Directives , context ) . ConfigureAwait ( false ) ;
612612
613613 //bool freshLine = schemaDefinition.Comments != null && Options.PrintComments; always false
You can’t perform that action at this time.
0 commit comments