-
Notifications
You must be signed in to change notification settings - Fork 12
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
Exception updating inventory items #13
Comments
Oha, Are there any other other custom json converters that might be affected by a similiar Bug? Are willing to submit a PR? Thanks and BR |
The converter has another issue. If the changedQuantity is negative, it should write a minus sign ( e.g. "-5"), according to https://www.bricklink.com/v3/api.page?page=update-inventory |
the rest looks good. Just a small doubt in NullableItemTypeStringConverter and ItemTypeStringConverter here: is it correct to return 0 (Minifig) as a default? |
that should come automatically I guess :) |
Lol, indeed. 😄 |
Not really, maybe it's better to throw in Case the parse fails? |
yap, could you do this? I guess you know more about the base idea of your library. In my libraries, I usually add an Unknown value to all enums and leave it for the user to handle this. A bit unfair to be honest :) |
Hi,
did you ever come across this return code 400 when updating inventory items:
The JSON object looks like this:
I found it. quantity is empty!
With the quantity being optional:
could this be the problem:
The text was updated successfully, but these errors were encountered: