Skip to content

PHP User Experience of using JSON-Schema #388

Closed
@CMCDragonkai

Description

@CMCDragonkai

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions