Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mohierf opened this issue Jun 28, 2019 · 3 comments
Closed

Comments

@mohierf
Copy link

mohierf commented Jun 28, 2019

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

@erayd
Copy link
Contributor

erayd commented Jul 28, 2019

This is a bug. However, please note that we do not yet support v7 schemas. The newest version currently supported by this library is v4.

@mxr576
Copy link

mxr576 commented Feb 7, 2024

Any plans for supporting newer versions?

@DannyvdSluijs
Copy link
Collaborator

Any plans for supporting newer versions?

We are in the process of reviving the library/repo which first is going to be soe triage on open issues and pull requests.
Then we can look into implementing the newer drafts. But in all honestly this will take time as we are in need of people helping this library out. Hope this answers your question.

@mohierf in an attempt to cleanup this repo we are trying to filter the issues and see which ones might be closed. Is it safe to assume this is a rather old issue, which sadly was left unanswered, and can be closed? Once the library will be rebooted we can look into supporting other and newer schema's. Feel free to close it yourself with some comments if helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants