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

avoid error when json body not object #213

Merged
merged 1 commit into from
Jul 27, 2024
Merged

avoid error when json body not object #213

merged 1 commit into from
Jul 27, 2024

Conversation

yflau
Copy link

@yflau yflau commented Jul 27, 2024

when content-type is application/json, now the setPayload will parse the body as map[string]interface{}, but if the body not a json object, but an array or just some simple type, then json unmarshal will be an error.

Copy link

Thank you for the PR! The test workflow ( GO:1.20.0 DB:MySQL8.0 Redis:6 ) is running, the results of the run will be commented later.

Copy link

Thank you for the PR! The test workflow ( GO:1.20.0 DB:MySQL8.0 Redis:5 ) is running, the results of the run will be commented later.

Copy link

Thank you for the PR! The test workflow ( GO:1.20.0 DB:SQLite3 Redis:4 ) is running, the results of the run will be commented later.

Copy link

Thank you for the PR! The test workflow ( GO:1.20.0 DB:SQLite3 Redis:6 ) is running, the results of the run will be commented later.

Copy link

Thank you for the PR! The test workflow ( GO:1.20.0 DB:MySQL8.0 Redis:4 ) is running, the results of the run will be commented later.

Copy link

Thank you for the PR! The test workflow ( GO:1.20.0 DB:SQLite3 Redis:5 ) is running, the results of the run will be commented later.

Copy link

✨DONE✨ GO:1.20.0 DB:MySQL8.0 Redis:6 passed.

Copy link

✨DONE✨ GO:1.20.0 DB:SQLite3 Redis:6 passed.

Copy link

✨DONE✨ GO:1.20.0 DB:SQLite3 Redis:4 passed.

Copy link

✨DONE✨ GO:1.20.0 DB:MySQL8.0 Redis:5 passed.

Copy link

✨DONE✨ GO:1.20.0 DB:MySQL8.0 Redis:4 passed.

Copy link

✨DONE✨ GO:1.20.0 DB:SQLite3 Redis:5 passed.

@trheyi trheyi merged commit d2d4122 into YaoApp:main Jul 27, 2024
2 checks passed
@trheyi
Copy link
Contributor

trheyi commented Jul 27, 2024

thanks

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