diff --git a/parameters/query_parameters.go b/parameters/query_parameters.go index e468762..4c39be3 100644 --- a/parameters/query_parameters.go +++ b/parameters/query_parameters.go @@ -217,7 +217,7 @@ doneLooking: if params[p].Schema != nil { sch := params[p].Schema.Schema() - if sch.Type[0] == helpers.Object && params[p].IsDefaultFormEncoding() { + if len(sch.Type) > 0 && sch.Type[0] == helpers.Object && params[p].IsDefaultFormEncoding() { // if the param is an object, and we're using default encoding, then we need to // validate the schema. decoded := helpers.ConstructParamMapFromQueryParamInput(queryParams)