Ultimate API - Incompatible Return for API Docs (Resource Versions)

Ally

gσ∂∂єѕѕ σƒ мαтнѕ αη∂ мєℓσηѕ χσ
Supreme
Feedback score
37
Posts
2,043
Reactions
2,194
Resources
0
Hello hello!

The resource versioning API is returning some yucky stuff. In particular, see:
Code:
{"result":"success","data":{"Ok":[{"version_id":77641,"name":"1.1","release_date":1637786141,"download_count":2},{"version_id":75389,"name":"1.0","release_date":1633994780,"download_count":5}]}}
Which instead of returning Version[] returns an object wrapped around a Version[] -- no other API endpoint I can see does this. Looks like it was used for debugging but if this could be fixed, much appreciated <3
 
Type
Bug report
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Harry

Rustacean
Management
Feedback score
10
Posts
1,606
Reactions
876
Resources
0
Looks like a typo of a single character which prevented the usual error checking. I've pushed a fix but will wait to see if any more issues prop up before we push it to prod.
I'll put this here in case anyone else was wondering.
 
Top