Merge pull request #6838 from crobibero/openapi-nullable

Add nullable dictionary openapi mapping
This commit is contained in:
Claus Vium
2021-11-13 19:32:11 +01:00
committed by GitHub

View File

@@ -416,6 +416,18 @@ namespace Jellyfin.Server.Extensions
}
})
});
// Support dictionary with nullable string value.
options.MapType<Dictionary<string, string?>>(() =>
new OpenApiSchema
{
Type = "object",
AdditionalProperties = new OpenApiSchema
{
Type = "string",
Nullable = true
}
});
}
}
}