(goctl)fix parser issues (#3930)

This commit is contained in:
kesonan
2024-03-02 22:27:39 +08:00
committed by GitHub
parent a5d2b971a1
commit e08ba2fee8
13 changed files with 179 additions and 24 deletions

View File

@@ -13,4 +13,9 @@
timeout6: 10ns
timeout7: 1h10m10s10ms10µs10ns
maxBytes: 1024
)
prefix: /v1
prefix1: /v1/v2_test/v2-beta
prefix2: v1/v2_test/v2-beta
prefix3: v1/v2_
summary:"test"
)

View File

@@ -0,0 +1,8 @@
syntax = "v1"
type Example{
A string
}
type Example{
B string
}

View File

@@ -188,3 +188,17 @@ service example {
post /example/nest2 (NestDemoReq2) returns (NestDemoResp2)
}
@server (
group: /g1/g2_test/g2_beta
prefix: /v1/v2_test/v2-beta
summary: "test"
)
service example {
@handler nestDemo1
post /a/b_c/d-e/:f/123/g (NestDemoReq1) returns (NestDemoResp1)
@handler nestDemo2
post /example/nest2 (NestDemoReq2) returns (NestDemoResp2)
}

View File

@@ -0,0 +1,3 @@
syntax = "v1"
type Base{}

View File

@@ -1,5 +1,7 @@
syntax = "v1"
import "example_base.api"
info(
title: "type title here"
desc: "type desc here"

View File

@@ -1,5 +1,7 @@
syntax = "v1"
import "example_base.api"
info(
title: "type title here"
desc: "type desc here"