(goctl): fix unresolved type if linked api imported (#3881)
parent
f54c2e384f
commit
3331954a78
@ -0,0 +1,6 @@
|
||||
syntax = "v1"
|
||||
|
||||
type Baz {
|
||||
Foo string `json:"foo"`
|
||||
Baz bool `json:"bar"`
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
syntax = "v1"
|
||||
|
||||
import "request.api"
|
||||
type Bar {
|
||||
Foo int `json:"foo"`
|
||||
Bar bool `json:"bar"`
|
||||
Baz
|
||||
Qux map[string]string `json:"qux"`
|
||||
}
|
||||
|
@ -0,0 +1,12 @@
|
||||
syntax = "v1"
|
||||
|
||||
import "base/request.api"
|
||||
import "base/response.api"
|
||||
|
||||
type Foo {}
|
||||
|
||||
service demo {
|
||||
@handler handlerName
|
||||
get /users/id/:userId (Baz) returns (Bar)
|
||||
}
|
||||
|
Loading…
Reference in New Issue