Skip to content

Commit e3c9ad8

Browse files
committed
ignore header parameters
1 parent c83fc15 commit e3c9ad8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

openapi/library.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,15 @@ func printParameters(w io.Writer, params []meta.Parameter, prefix string) {
159159
if param.Hidden {
160160
continue
161161
}
162+
162163
if param.Position == "Domain" {
163164
continue
164165
}
166+
167+
if param.Position == "Header" {
168+
continue
169+
}
170+
165171
if param.Type == "RepeatList" {
166172
if len(param.SubParameters) > 0 {
167173
printParameters(w, param.SubParameters, prefix+param.Name+".n.")

0 commit comments

Comments
 (0)