Closed
Description
Currently for an inline schema, it must be all objects. Since PHP mostly associative arrays to represent objects in Javascript, why not allow associative arrays to be valid schemas?
I always use the Constraint::CHECK_MODE_TYPE_CAST
right now, and this is great since I always run json_decode(..., true)
. But I find it very verbose to have to type coerce all my validator schemas as (object) [...]
.
Metadata
Metadata
Assignees
Labels
No labels