Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ func (c *compileCtx) compilePath(path string, p *openapi.Path) error {
if err != nil {
return errors.Wrapf(err, `failed to compile parameters for %s`, endpointName)
}
reqType = c.getBoxedType(reqType)
m, ok := reqType.(*protobuf.Message)
if !ok {
return errors.Errorf(`type %s is not a message (%T)`, reqName, reqType)
Expand Down Expand Up @@ -388,6 +389,7 @@ func (c *compileCtx) compilePath(path string, p *openapi.Path) error {
}

if resType != nil {
resType = c.getBoxedType(resType)
m, ok := resType.(*protobuf.Message)
if !ok {
return errors.Errorf(`got non-message type (%T) in response for %s`, resType, endpointName)
Expand Down
Loading