File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public function conformsToDefinition(mixed $value)
68
68
$ type = $ validator ::SWAGGER_TYPE ;
69
69
throw new InvalidArgumentException (
70
70
$ this ->name ,
71
- "The provided value for parameter ' { $ this -> name } ' did not pass validation of type ' {$ type }'. "
71
+ "The provided value did not pass the validation of type ' {$ type }'. "
72
72
);
73
73
}
74
74
}
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ public function getExampleValue()
18
18
19
19
public function validate (mixed $ value )
20
20
{
21
+ if (!MetaFormatHelper::checkType ($ value , PhpTypes::Int)) {
22
+ throw new InternalServerException ("err: {$ value }" );
23
+ }
21
24
return MetaFormatHelper::checkType ($ value , PhpTypes::Int);
22
25
}
23
26
}
You can’t perform that action at this time.
0 commit comments