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

array params parse error #4251

Open
edieruby opened this issue Jul 16, 2024 · 0 comments
Open

array params parse error #4251

edieruby opened this issue Jul 16, 2024 · 0 comments
Assignees

Comments

@edieruby
Copy link
Contributor

edieruby commented Jul 16, 2024

github.com/zeromicro/go-zero v1.6.6

syntax = "v1"

info (
title: "type title here"
desc: "type desc here"
author: "type author here"
email: "type email here"
version: "type version here"
)

type request {
// TODO: add members here and delete this comment
A [5]uint8 json:"a"
}

type request2 {
// TODO: add members here and delete this comment
A []uint8 json:"a"
}

type response {}

@server (
group: template
)
service template {
@handler handlerName // TODO: replace handler name and delete this comment
post /users/id (request) returns (response)

@handler handlerName2 // TODO: replace handler name and delete this comment
post /users/id2 (request2) returns (response)

}

image
Array not work

image
Slice work

@kevwan kevwan self-assigned this Jul 19, 2024
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

2 participants