zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.42k stars 3.97k forks source link

array params parse error #4251

Open edieruby opened 4 months ago

edieruby commented 4 months ago

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