item_details.json returns "Unknown"
Ok, I made a complete list:
- For “consumable”.“type”, only 8472 is affected.
- For “unlock_type”, a lot more are affected: 36517, 36408, 36409, 36518, 19988, 39490, 39487, 39488, 44877, 44881, 44723, 44068, 44882, 44878, 44601, 44724, 47880, 48953, 48952 (all these are finishers)
I would guess this is because the actual values in the core datastore are numeric, and the API uses a lookup table to translate them into strings. The lookup table simply hasn’t been updated with entries for these new sub-types, so the lookup fails through to the default of “Unknown”.
Probably correct, but that doesn’t mean that these cannot or should not be fixed.
I picked one of those unlocks, and I have an item type of “Consumable” and a type of “unlock” in my database…
Item 8472 (the splitter) does give a type of “unknown” with me. (my data is from the start of september, at least that’s when I started keeping track of when I updated an item in my local database)
I picked one of those unlocks, and I have an item type of “Consumable” and a type of “unlock” in my database…
He’s talking about the unlock_type value for those, not the consumable.type.
https://api.guildwars2.com/v1/item_details.json?item_id=36517
{"item_id":“36517”,“name”:“Limited-Use Snowman Finisher”,
…,
“consumable”:{"type":“Unlock”,“unlock_type”:“Unknown”}}
Programmer
There are some new types of various things that have not yet been provided API display names. I will be fixing this shortly.
Thanks for the report.