Fix openapi nullable properties

This commit is contained in:
crobibero 2021-01-24 14:36:36 -07:00
parent 98a4e1b840
commit ef97ead707

View File

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