chore: Embed unit test data (#1812)
* Embed unit test data * Add testdata Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
14
tools/goctl/api/gogen/testdata/invalid_api_file.api
vendored
Normal file
14
tools/goctl/api/gogen/testdata/invalid_api_file.api
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
type Request struct {
|
||||
Name string `path:"name,options=you|me"`
|
||||
}
|
||||
|
||||
type Response struct {
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
service A-api
|
||||
@server(
|
||||
handler: GreetHandler
|
||||
)
|
||||
get /greet/from/:name(Request) returns (Response)
|
||||
}
|
||||
Reference in New Issue
Block a user