Skip to content

Commit c8f987f

Browse files
committed
Fix formatting of emitted code
1 parent bf60920 commit c8f987f

9 files changed

+9
-9
lines changed

src/OpenApi/gen/XmlCommentGenerator.Emitter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext
464464
// Apply comments from the property
465465
if (XmlCommentCache.Cache.TryGetValue(DocumentationCommentIdHelper.NormalizeDocId(propertyInfo.CreateDocumentationId()), out var propertyComment))
466466
{
467-
if(schema.Metadata is null
467+
if (schema.Metadata is null
468468
|| !schema.Metadata.TryGetValue("x-schema-id", out var schemaId)
469469
|| string.IsNullOrEmpty(schemaId as string))
470470
{

src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/AddOpenApiTests.CanInterceptAddOpenApi#OpenApiXmlCommentSupport.generated.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext
446446
// Apply comments from the property
447447
if (XmlCommentCache.Cache.TryGetValue(DocumentationCommentIdHelper.NormalizeDocId(propertyInfo.CreateDocumentationId()), out var propertyComment))
448448
{
449-
if(schema.Metadata is null
449+
if (schema.Metadata is null
450450
|| !schema.Metadata.TryGetValue("x-schema-id", out var schemaId)
451451
|| string.IsNullOrEmpty(schemaId as string))
452452
{

src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/AdditionalTextsTests.CanHandleXmlForSchemasInAdditionalTexts#OpenApiXmlCommentSupport.generated.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext
475475
// Apply comments from the property
476476
if (XmlCommentCache.Cache.TryGetValue(DocumentationCommentIdHelper.NormalizeDocId(propertyInfo.CreateDocumentationId()), out var propertyComment))
477477
{
478-
if(schema.Metadata is null
478+
if (schema.Metadata is null
479479
|| !schema.Metadata.TryGetValue("x-schema-id", out var schemaId)
480480
|| string.IsNullOrEmpty(schemaId as string))
481481
{

src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/CompletenessTests.SupportsAllXmlTagsOnSchemas#OpenApiXmlCommentSupport.generated.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext
567567
// Apply comments from the property
568568
if (XmlCommentCache.Cache.TryGetValue(DocumentationCommentIdHelper.NormalizeDocId(propertyInfo.CreateDocumentationId()), out var propertyComment))
569569
{
570-
if(schema.Metadata is null
570+
if (schema.Metadata is null
571571
|| !schema.Metadata.TryGetValue("x-schema-id", out var schemaId)
572572
|| string.IsNullOrEmpty(schemaId as string))
573573
{

src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/OperationTests.SupportsXmlCommentsOnOperationsFromControllers#OpenApiXmlCommentSupport.generated.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext
450450
// Apply comments from the property
451451
if (XmlCommentCache.Cache.TryGetValue(DocumentationCommentIdHelper.NormalizeDocId(propertyInfo.CreateDocumentationId()), out var propertyComment))
452452
{
453-
if(schema.Metadata is null
453+
if (schema.Metadata is null
454454
|| !schema.Metadata.TryGetValue("x-schema-id", out var schemaId)
455455
|| string.IsNullOrEmpty(schemaId as string))
456456
{

src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/OperationTests.SupportsXmlCommentsOnOperationsFromMinimalApis#OpenApiXmlCommentSupport.generated.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext
468468
// Apply comments from the property
469469
if (XmlCommentCache.Cache.TryGetValue(DocumentationCommentIdHelper.NormalizeDocId(propertyInfo.CreateDocumentationId()), out var propertyComment))
470470
{
471-
if(schema.Metadata is null
471+
if (schema.Metadata is null
472472
|| !schema.Metadata.TryGetValue("x-schema-id", out var schemaId)
473473
|| string.IsNullOrEmpty(schemaId as string))
474474
{

src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/SchemaTests.SupportsXmlCommentsOnSchemas#OpenApiXmlCommentSupport.generated.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext
476476
// Apply comments from the property
477477
if (XmlCommentCache.Cache.TryGetValue(DocumentationCommentIdHelper.NormalizeDocId(propertyInfo.CreateDocumentationId()), out var propertyComment))
478478
{
479-
if(schema.Metadata is null
479+
if (schema.Metadata is null
480480
|| !schema.Metadata.TryGetValue("x-schema-id", out var schemaId)
481481
|| string.IsNullOrEmpty(schemaId as string))
482482
{

src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/SchemaTests.XmlCommentsOnPropertiesShouldApplyToSchemaReferences#OpenApiXmlCommentSupport.generated.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext
455455
// Apply comments from the property
456456
if (XmlCommentCache.Cache.TryGetValue(DocumentationCommentIdHelper.NormalizeDocId(propertyInfo.CreateDocumentationId()), out var propertyComment))
457457
{
458-
if(schema.Metadata is null
458+
if (schema.Metadata is null
459459
|| !schema.Metadata.TryGetValue("x-schema-id", out var schemaId)
460460
|| string.IsNullOrEmpty(schemaId as string))
461461
{

src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/XmlCommentDocumentationIdTests.CanMergeXmlCommentsWithDifferentDocumentationIdFormats#OpenApiXmlCommentSupport.generated.verified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext
447447
// Apply comments from the property
448448
if (XmlCommentCache.Cache.TryGetValue(DocumentationCommentIdHelper.NormalizeDocId(propertyInfo.CreateDocumentationId()), out var propertyComment))
449449
{
450-
if(schema.Metadata is null
450+
if (schema.Metadata is null
451451
|| !schema.Metadata.TryGetValue("x-schema-id", out var schemaId)
452452
|| string.IsNullOrEmpty(schemaId as string))
453453
{

0 commit comments

Comments
 (0)