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

Does go-zero API definition support JSON arrays? #4390

Open
error0g opened this issue Sep 24, 2024 · 4 comments
Open

Does go-zero API definition support JSON arrays? #4390

error0g opened this issue Sep 24, 2024 · 4 comments

Comments

@error0g
Copy link

error0g commented Sep 24, 2024

json body example:
[ { "id": 1 }, { "id": 2 } ]
How do I define it in the API file?

@smithyj
Copy link
Contributor

smithyj commented Sep 24, 2024

不支持直接传数组

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Direct passing of arrays is not supported

@alanxiongxing
Copy link

我也遇到了,咋解决呀?"RuleList": [{"targetValue":"699","warningValue":"599"},{"targetValue":"699","warningValue":"599"}]

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I've encountered this too, how to solve it? "RuleList": [{"targetValue":"699","warningValue":"599"},{"targetValue":"699","warningValue":"599"}]

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

No branches or pull requests

4 participants