Skip to content

Commit

Permalink
Collection literals!
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Jul 14, 2023
1 parent d0a6683 commit 156eeb2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions TodoApi/Extensions/OpenApiExtensions.cs
Expand Up @@ -32,7 +32,7 @@ public static IEndpointConventionBuilder AddOpenApiSecurity(this IEndpointConven
{
new()
{
[BearerScheme] = new List<string>()
[BearerScheme] = []

Check failure on line 35 in TodoApi/Extensions/OpenApiExtensions.cs

View workflow job for this annotation

GitHub Actions / build

Invalid expression term '['

Check failure on line 35 in TodoApi/Extensions/OpenApiExtensions.cs

View workflow job for this annotation

GitHub Actions / build

Syntax error; value expected

Check failure on line 35 in TodoApi/Extensions/OpenApiExtensions.cs

View workflow job for this annotation

GitHub Actions / build

Invalid expression term '['

Check failure on line 35 in TodoApi/Extensions/OpenApiExtensions.cs

View workflow job for this annotation

GitHub Actions / build

Syntax error; value expected
}
}
});
Expand All @@ -46,15 +46,15 @@ public static IEndpointConventionBuilder Produces(this IEndpointConventionBuilde
{
Description = "Success",
Content =
{
["application/json"] = new OpenApiMediaType
{
Schema = new OpenApiSchema
{
Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = schemaReference }
}
}
}
{
["application/json"] = new OpenApiMediaType
{
Schema = new OpenApiSchema
{
Reference = new OpenApiReference { Type = ReferenceType.Schema, Id = schemaReference }
}
}
}
};
operation.Responses.Add("200", response);
Expand Down

0 comments on commit 156eeb2

Please sign in to comment.