@@ -5,9 +5,11 @@ import (
5
5
"net/url"
6
6
"strings"
7
7
8
- "github.com/pb33f/libopenapi-validator/helpers"
9
8
"github.com/pb33f/libopenapi/datamodel/high/base"
9
+
10
10
v3 "github.com/pb33f/libopenapi/datamodel/high/v3"
11
+
12
+ "github.com/pb33f/libopenapi-validator/helpers"
11
13
)
12
14
13
15
func IncorrectFormEncoding (param * v3.Parameter , qp * helpers.QueryParam , i int ) * ValidationError {
@@ -133,7 +135,8 @@ func IncorrectHeaderParamEnum(param *v3.Parameter, ef string, sch *base.Schema)
133
135
}
134
136
135
137
func IncorrectQueryParamArrayBoolean (
136
- param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ) * ValidationError {
138
+ param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ,
139
+ ) * ValidationError {
137
140
return & ValidationError {
138
141
ValidationType : helpers .ParameterValidation ,
139
142
ValidationSubType : helpers .ParameterValidationQuery ,
@@ -148,7 +151,8 @@ func IncorrectQueryParamArrayBoolean(
148
151
}
149
152
150
153
func IncorrectCookieParamArrayBoolean (
151
- param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ) * ValidationError {
154
+ param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ,
155
+ ) * ValidationError {
152
156
return & ValidationError {
153
157
ValidationType : helpers .ParameterValidation ,
154
158
ValidationSubType : helpers .ParameterValidationCookie ,
@@ -163,7 +167,8 @@ func IncorrectCookieParamArrayBoolean(
163
167
}
164
168
165
169
func IncorrectQueryParamArrayNumber (
166
- param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ) * ValidationError {
170
+ param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ,
171
+ ) * ValidationError {
167
172
return & ValidationError {
168
173
ValidationType : helpers .ParameterValidation ,
169
174
ValidationSubType : helpers .ParameterValidationQuery ,
@@ -178,7 +183,8 @@ func IncorrectQueryParamArrayNumber(
178
183
}
179
184
180
185
func IncorrectCookieParamArrayNumber (
181
- param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ) * ValidationError {
186
+ param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ,
187
+ ) * ValidationError {
182
188
return & ValidationError {
183
189
ValidationType : helpers .ParameterValidation ,
184
190
ValidationSubType : helpers .ParameterValidationCookie ,
@@ -364,7 +370,8 @@ func IncorrectCookieParamEnum(param *v3.Parameter, ef string, sch *base.Schema)
364
370
}
365
371
366
372
func IncorrectHeaderParamArrayBoolean (
367
- param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ) * ValidationError {
373
+ param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ,
374
+ ) * ValidationError {
368
375
return & ValidationError {
369
376
ValidationType : helpers .ParameterValidation ,
370
377
ValidationSubType : helpers .ParameterValidationHeader ,
@@ -379,7 +386,8 @@ func IncorrectHeaderParamArrayBoolean(
379
386
}
380
387
381
388
func IncorrectHeaderParamArrayNumber (
382
- param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ) * ValidationError {
389
+ param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ,
390
+ ) * ValidationError {
383
391
return & ValidationError {
384
392
ValidationType : helpers .ParameterValidation ,
385
393
ValidationSubType : helpers .ParameterValidationHeader ,
@@ -441,7 +449,8 @@ func IncorrectPathParamNumber(param *v3.Parameter, item string, sch *base.Schema
441
449
}
442
450
443
451
func IncorrectPathParamArrayNumber (
444
- param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ) * ValidationError {
452
+ param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ,
453
+ ) * ValidationError {
445
454
return & ValidationError {
446
455
ValidationType : helpers .ParameterValidation ,
447
456
ValidationSubType : helpers .ParameterValidationPath ,
@@ -456,7 +465,8 @@ func IncorrectPathParamArrayNumber(
456
465
}
457
466
458
467
func IncorrectPathParamArrayBoolean (
459
- param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ) * ValidationError {
468
+ param * v3.Parameter , item string , sch * base.Schema , itemsSchema * base.Schema ,
469
+ ) * ValidationError {
460
470
return & ValidationError {
461
471
ValidationType : helpers .ParameterValidation ,
462
472
ValidationSubType : helpers .ParameterValidationPath ,
0 commit comments