@@ -5,9 +5,11 @@ import (
55 "net/url"
66 "strings"
77
8- "github.com/pb33f/libopenapi-validator/helpers"
98 "github.com/pb33f/libopenapi/datamodel/high/base"
9+
1010 v3 "github.com/pb33f/libopenapi/datamodel/high/v3"
11+
12+ "github.com/pb33f/libopenapi-validator/helpers"
1113)
1214
1315func IncorrectFormEncoding (param * v3.Parameter , qp * helpers.QueryParam , i int ) * ValidationError {
@@ -133,7 +135,8 @@ func IncorrectHeaderParamEnum(param *v3.Parameter, ef string, sch *base.Schema)
133135}
134136
135137func 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 {
137140 return & ValidationError {
138141 ValidationType : helpers .ParameterValidation ,
139142 ValidationSubType : helpers .ParameterValidationQuery ,
@@ -148,7 +151,8 @@ func IncorrectQueryParamArrayBoolean(
148151}
149152
150153func 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 {
152156 return & ValidationError {
153157 ValidationType : helpers .ParameterValidation ,
154158 ValidationSubType : helpers .ParameterValidationCookie ,
@@ -163,7 +167,8 @@ func IncorrectCookieParamArrayBoolean(
163167}
164168
165169func 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 {
167172 return & ValidationError {
168173 ValidationType : helpers .ParameterValidation ,
169174 ValidationSubType : helpers .ParameterValidationQuery ,
@@ -178,7 +183,8 @@ func IncorrectQueryParamArrayNumber(
178183}
179184
180185func 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 {
182188 return & ValidationError {
183189 ValidationType : helpers .ParameterValidation ,
184190 ValidationSubType : helpers .ParameterValidationCookie ,
@@ -364,7 +370,8 @@ func IncorrectCookieParamEnum(param *v3.Parameter, ef string, sch *base.Schema)
364370}
365371
366372func 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 {
368375 return & ValidationError {
369376 ValidationType : helpers .ParameterValidation ,
370377 ValidationSubType : helpers .ParameterValidationHeader ,
@@ -379,7 +386,8 @@ func IncorrectHeaderParamArrayBoolean(
379386}
380387
381388func 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 {
383391 return & ValidationError {
384392 ValidationType : helpers .ParameterValidation ,
385393 ValidationSubType : helpers .ParameterValidationHeader ,
@@ -441,7 +449,8 @@ func IncorrectPathParamNumber(param *v3.Parameter, item string, sch *base.Schema
441449}
442450
443451func 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 {
445454 return & ValidationError {
446455 ValidationType : helpers .ParameterValidation ,
447456 ValidationSubType : helpers .ParameterValidationPath ,
@@ -456,7 +465,8 @@ func IncorrectPathParamArrayNumber(
456465}
457466
458467func 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 {
460470 return & ValidationError {
461471 ValidationType : helpers .ParameterValidation ,
462472 ValidationSubType : helpers .ParameterValidationPath ,
0 commit comments