New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Supersets does not use color id, just gets all supersets #3
Comments
Hi, thanks for this catch. It's fixed and there will be a new NuGet package version soon. Thanks very much |
Cool, great client btw. Its a much higher standard than I could ever make. |
Also not sure what you have in mind, but obviously its easy to make the function allow no color id and get all, it defaults to 0 for subsets and supersets which makes less sense for parts than it does for minifigures or sets.
|
Thanks. Just try to improve every day and never stop learning. This lib has a lot of things to improve as well (like injecting HttpClient, ServiceCollection extension etc.) I'll look into that colorId = 0 issue again. The client should not be more complex than it has to (the server handles colorId = 0 anyway). |
The subsets function implements it with ?color_id parameter but supersets has color id just after / which is disregarded.
Can change to be like subsets function and fix:
In GetSupersetsDemo, example
var supersets = await client.GetSupersetsAsync(ItemType.Part, "40232", 8);
gets all supersets, not just color 8, works after changing
The text was updated successfully, but these errors were encountered: