@@ -3809,8 +3809,8 @@ public class FormDataParameter inherits TypedParameter {
3809
3809
if (!exists type) {
3810
3810
type = "any";
3811
3811
} else if (!ParameterTypes{type}) {
3812
- throw "INVALID-FIELD-VALUE", sprintf("Parameter Object %y: invalid parameter type value passed: %y, "
3813
- "expecting one of: %y", name, type, keys ParameterTypes);
3812
+ throw "INVALID-FIELD-VALUE", sprintf("Form Data Parameter Object %y: invalid parameter type value "
3813
+ "passed: %y, expecting one of: %y", name, type, keys ParameterTypes);
3814
3814
}
3815
3815
}
3816
3816
}
@@ -3841,8 +3841,8 @@ public class OtherParameter inherits TypedParameter {
3841
3841
if (!exists type) {
3842
3842
type = "any";
3843
3843
} else if (!ParameterTypes{type} && (type != "object" || !(swagger.getParseFlags() & LM_ACCEPT_QUERY_OBJECTS))) {
3844
- throw "INVALID-FIELD-VALUE", sprintf("Parameter Object %y: invalid parameter type value passed: %y, "
3845
- "expecting one of: %y", name, type, keys ParameterTypes);
3844
+ throw "INVALID-FIELD-VALUE", sprintf("Parameter Object (%s) %y: invalid parameter type value passed: %y, "
3845
+ "expecting one of: %y", inLoc, name, type, keys ParameterTypes);
3846
3846
}
3847
3847
}
3848
3848
}
@@ -4254,6 +4254,7 @@ public class SchemaObject inherits ObjectBase, SchemaBase {
4254
4254
#! valid reference types
4255
4255
const ReferenceTypes = ScalarTypes + (
4256
4256
"object": True,
4257
+ "file": True,
4257
4258
);
4258
4259
}
4259
4260
0 commit comments