We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ad910e commit 14dbbffCopy full SHA for 14dbbff
2 files changed
app/helpers/MetaFormats/RequestParamData.php
@@ -68,7 +68,7 @@ public function conformsToDefinition(mixed $value)
68
$type = $validator::SWAGGER_TYPE;
69
throw new InvalidArgumentException(
70
$this->name,
71
- "The provided value for parameter '{$this->name}' did not pass validation of type '{$type}'."
+ "The provided value did not pass the validation of type '{$type}'."
72
);
73
}
74
app/helpers/MetaFormats/Validators/VInt.php
@@ -18,6 +18,9 @@ public function getExampleValue()
18
19
public function validate(mixed $value)
20
{
21
+ if (!MetaFormatHelper::checkType($value, PhpTypes::Int)) {
22
+ throw new InternalServerException("err: {$value}");
23
+ }
24
return MetaFormatHelper::checkType($value, PhpTypes::Int);
25
26
0 commit comments