Skip to content

Comments

Fix: update output for nested lists#332

Merged
sarahheacock merged 1 commit intomasterfrom
nested-list-fix
Feb 23, 2026
Merged

Fix: update output for nested lists#332
sarahheacock merged 1 commit intomasterfrom
nested-list-fix

Conversation

@sarahheacock
Copy link
Contributor

When a user tries to decode a nested list like [[1, 2, 3], [4, 5, 6]], they get an encoding error since the generated python entry types are expecting [{"entry": [1, 2, 3]}, {"entry": [4, 5, 6]}].

By changing the output to JsonArray, apitools can automatically decode [[1, 2, 3], [4, 5, 6]] to [JsonArray(entries=[1, 2, 3]), JsonArray(entries=[4, 5, 6])] and vice versa, rather than rely on custom encoders and decoders.

@sarahheacock sarahheacock merged commit 76c0adc into master Feb 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants