mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 00:05:26 +03:00
Enable non-nullable reference types in generated api spec
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user