Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Jan 7, 2025
1 parent fcf84c7 commit 0aa6839
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion testdata/idl/example4.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct GetFavoriteReq {
255: required Favorite Base,
}
struct GetFavoriteResp {
1: required Favorite Favorite (api.body="favorite"),
1: required Favorite Favorite (api.key="favorite"),
255: required base.BaseResp BaseResp,
}

Expand Down
2 changes: 2 additions & 0 deletions thrift/annotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,4 +469,6 @@ func injectAnnotations(origin *[]*parser.Annotation, next []parser.Annotation) e
var (
ctxIsBodyRoot = "isBodyRoot"
CtxKeyIsBodyRoot = &ctxIsBodyRoot
ctxIsRequest = "isRequest"
CtxKeyIsRequest = &ctxIsRequest
)

0 comments on commit 0aa6839

Please sign in to comment.