inconsistent behaviour when generating embedded structs
qwernser opened this issue · 0 comments
qwernser commented
type (
Part {
Content string `path:"content"`
}
Combined {
Part
Other string `json:"other"`
}
Response {
Msg string `json:"msg"`
}
)
service api {
@handler GetInfo
post /api/:content(Combined) returns (Response)
}
content
appears in both path and json body in final json, which is inconsistent with normal (non embedded) structs .