Skip to content
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

feat(*): decode api response json body with array metatable #114

Merged
merged 2 commits into from
May 15, 2024

Conversation

windmgc
Copy link
Member

@windmgc windmgc commented May 13, 2024

Summary

This PR enables cjson.decode_array_with_array_mt(true) in the request executes, so that further encode on the response body may be able to transform an empty array back to the correct array format in plain JSON text.

Issue

FTI-5937

Copy link

Luacheck Report

33 tests    1 ✅  0s ⏱️
 1 suites   0 💤
 1 files    32 ❌

For more details on these failures, see this check.

Results for commit 11c9b66.

@windmgc windmgc merged commit 77c62da into main May 15, 2024
9 checks passed
@windmgc windmgc deleted the feat-add-array-mt-support branch May 15, 2024 03:41
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.

3 participants