Skip to content

Commit

Permalink
feat(swagger): added support NonNullable ReferenceTypes (#382)
Browse files Browse the repository at this point in the history
Refs: CPLP-3407
Reviewed-By: Phil Schneider <[email protected]>
  • Loading branch information
VPrasannaK94 authored Dec 14, 2023
1 parent d0639fa commit 6f131c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/framework/Framework.Swagger/SwaggerGenConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static void SetupSwaggerGen<TProgram>(SwaggerGenOptions c, string version
c.SwaggerDoc(version, new OpenApiInfo { Title = assemblyName, Version = version });

c.MapType(typeof(IFormFile), () => new OpenApiSchema { Type = "file", Format = "binary" });
c.SupportNonNullableReferenceTypes();

c.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme
{
Expand Down

0 comments on commit 6f131c2

Please sign in to comment.