Skip to content

Warning: array_key_exists() expects parameter 2 to be array, boolean given #576

Closed
@mohierf

Description

@mohierf

I got this excveption while I validate a Json schema against the v7 meta schema. After more investigation I found the pattern in the schema that makes this exception happen.

The schema:

            "email": {
              "type": "null",
              "title": "The Email Schema",
              "default": null,
              "examples": [
                null
              ]
            },

The "examples": [ null ] is the property that raises the exception.

Note I think that this array declaration is probably not valid according to the specification but this should probably not raise an exception

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