Skip to content

Json Schema Parsing Incorrect with empty objects (e.g. {}) #17

Description

@bbene

When decoding, we are incorrectly using associative array stile which leads to issues with {} vs [] validation.

We should instead update this line to be:

$parsed = json_decode(json: $responseString, associative: false)

as well as update the exception handling appropriately.

This will likely cause breaking changes so will need a new major version number as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions