Specify defaults or set query parameter to nullable

This commit is contained in:
crobibero
2021-03-04 18:25:52 -07:00
parent 8615847a8a
commit 858c91ab48
10 changed files with 62 additions and 60 deletions

View File

@@ -777,7 +777,7 @@ namespace Jellyfin.Api.Controllers
[ProducesResponseType(StatusCodes.Status200OK)]
public ActionResult<LibraryOptionsResultDto> GetLibraryOptionsInfo(
[FromQuery] string? libraryContentType,
[FromQuery] bool isNewLibrary)
[FromQuery] bool isNewLibrary = false)
{
var result = new LibraryOptionsResultDto();