Always return an objects array in /roulette.json #52
Loading…
Reference in a new issue
No description provided.
Delete branch "dice/roulette-empty-objects"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A bare pet used to omit the objects key from the JSON, so callers had to special-case it. The JSON now always has objects, as an empty array when there are no items. Only the JSON body changes; the wardrobe and PNG URLs still leave objects out, since an empty array in a query string would add a stray objects[]= param.
@dice I think this is actually nudging me toward a different answer: the roulette is functionally generating an unsaved outfit, and we already have JSON serialization for that. Might set up a PR to start giving you that instead—which would be a minor JSON format change.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.