Skip to content

Commit

Permalink
fix: linting error in program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
buehler committed Aug 29, 2023
1 parent 2ae2de0 commit dbab56e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions MumbleApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#endif
.AddConfiguration(builder.Configuration));


builder.Services.AddScoped<IPosts, Posts>();
builder.Services.AddScoped<IStorage, Storage>();
builder.Services.AddScoped<IUsers, Users>();
Expand Down Expand Up @@ -119,8 +118,8 @@ await db.Database.ExecuteSqlInterpolatedAsync(
Title = "Mumble API",
Description =
"API for 'mumble'. A simple messaging/twitter like API for the CAS Frontend Engineering Advanced.",
Contact = new() {Name = "smartive AG", Email = "[email protected]", Url = new("https://smartive.ch"),},
License = new() {Name = "Apache 2.0", Url = new("https://www.apache.org/licenses/LICENSE-2.0"),},
Contact = new() { Name = "smartive AG", Email = "[email protected]", Url = new("https://smartive.ch"), },
License = new() { Name = "Apache 2.0", Url = new("https://www.apache.org/licenses/LICENSE-2.0"), },
});
o.AddSecurityDefinition(ZitadelDefaults.AuthenticationScheme, new()
Expand Down Expand Up @@ -149,7 +148,7 @@ await db.Database.ExecuteSqlInterpolatedAsync(
Description = "Universally Unique Lexicographically Sortable Identifier",
Type = "string",
Example = new OpenApiString("01GEESHPQQ4NJKNZJN9AKWQW6G"),
ExternalDocs = new() {Description = "ULID Specification", Url = new("https://github.com/ulid/spec"),},
ExternalDocs = new() { Description = "ULID Specification", Url = new("https://github.com/ulid/spec"), },
});
o.OperationFilter<InternalServerErrorResponseFilter>();
Expand Down Expand Up @@ -181,7 +180,7 @@ await db.Database.ExecuteSqlInterpolatedAsync(
new()
{
ForwardedHeaders = ForwardedHeaders.XForwardedProto,
KnownNetworks = {new IPNetwork(IPAddress.Parse("0.0.0.0"), 0)},
KnownNetworks = { new IPNetwork(IPAddress.Parse("0.0.0.0"), 0) },
});
app.UseHsts();
}
Expand All @@ -202,7 +201,7 @@ await db.Database.ExecuteSqlInterpolatedAsync(
o.RoutePrefix = string.Empty;
o.OAuthConfigObject = new()
{
Scopes = new List<string> {"openid", "profile", "email"},
Scopes = new List<string> { "openid", "profile", "email" },
ClientId = config.Swagger.ClientId,
UsePkceWithAuthorizationCodeGrant = true,
};
Expand Down

0 comments on commit dbab56e

Please sign in to comment.