Merge pull request #6838 from crobibero/openapi-nullable

Add nullable dictionary openapi mapping
pull/6841/head
Claus Vium 3 years ago committed by GitHub
commit 2f92ee374a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
}
});
}
}
}

Loading…
Cancel
Save