Skip to content

Commit a192851

Browse files
committed
fix Domain bu
1 parent 6055f99 commit a192851

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

openapi/library.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ func printParameters(w io.Writer, params []meta.Parameter, prefix string) {
122122
if param.Hidden {
123123
continue
124124
}
125+
if param.Position == "Domain" {
126+
continue
127+
}
125128
if len(param.SubParameters) > 0 {
126129
printParameters(w, param.SubParameters, param.Name+".n.")
127130
//for _, sp := range param.SubParameters {

openapi/rpc.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ func (a *RpcInvoker) Prepare(ctx *cli.Context) error {
4242
request.QueryParams[f.Name], _ = f.GetValue()
4343
} else if param.Position == "Body" {
4444
request.FormParams[f.Name], _ = f.GetValue()
45-
} else {
45+
} else if param.Position == "Domain" {
46+
continue
47+
}else {
4648
return fmt.Errorf("unknown parameter position; %s is %s", param.Name, param.Position)
4749
}
4850
}

0 commit comments

Comments
 (0)