Closed
Description
If my schema is defined as such:
Source of issue appears to be this commit: 97ec369
{
"type": "object",
"properties": {
"value": {
"type": "integer"
"title": "Value",
"required": true
}
}
}
And my data is as follows, note that "value" is a string:
{
"value": "32"
}
Result is valid, but expected failure.
The value should explicitly be an integer.
The problem is integer comparisons in Type.php are:
...
if ('integer' === $type) {
return is_int($value) || ctype_digit($value);
}
...
Metadata
Metadata
Assignees
Labels
No labels