location=>paramType

This commit is contained in:
eyalpost
2017-05-12 09:28:46 +03:00
parent b6a35a8944
commit 0ac2e47162
5 changed files with 10 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ func getParser(param *MethodParam, t reflect.Type) paramParser {
if t.Elem().Kind() == reflect.Uint8 { //treat []byte as string
return stringParser{}
}
if param.location == body {
if param.in == body {
return jsonParser{}
}
elemParser := getParser(param, t.Elem())