thephpleague / json-guard

Validation of json-schema.org compliant schemas.
http://json-guard.thephpleague.com/
MIT License
175 stars 26 forks source link

[WIP] Update test suite #139

Open matt-allan opened 6 years ago

matt-allan commented 6 years ago

WIP. Updating the test suite introduced a few failing tests.

This test is not failing because it's recursive but because it requires the dereferencer to walk the current document before attempting to load it via the URI. See https://github.com/json-schema-org/JSON-Schema-Test-Suite/issues/217 and https://github.com/json-schema-org/json-schema-spec/issues/576.

This is failing because we are using FILTER_VALIDATE_URL and it's a URI, not a URL. I probably need to pull in league/uri-parser but that will bump the minimum version to 7.0. I was considering doing that anyway.

This is failing because we use php's PCRE regex instead of ECMA. I don't think it's worth trying to fix this, it's an optional test.