Enable non-nullable reference types in generated api spec

pull/5243/head
crobibero 4 years ago
parent 6ad2544a30
commit 9da972682c

@ -310,6 +310,7 @@ namespace Jellyfin.Server.Extensions
// Allow parameters to properly be nullable. // Allow parameters to properly be nullable.
c.UseAllOfToExtendReferenceSchemas(); c.UseAllOfToExtendReferenceSchemas();
c.SupportNonNullableReferenceTypes();
// TODO - remove when all types are supported in System.Text.Json // TODO - remove when all types are supported in System.Text.Json
c.AddSwaggerTypeMappings(); c.AddSwaggerTypeMappings();

Loading…
Cancel
Save