You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$resolver = newSomeCustomResolver();
$schemaLoader = newSchemaLoader(null, $resolver);
$validator = newValidator($schemaLoader);
// $path is also a relative url, e.g. /some/example/mainPath$validator->validate($data, $path);
Seems that the
$ref
is not resolved correctly, if used in sub-properties.My schema looks something like this:
After validating, I get following error:
My validator looks very "primitive":
The custom resolver is working fine. I get the correct schema for the mainPath & also moving
$ref
to parent object works fine (jumps to https://github.com/opis/json-schema/blob/master/src/Parsers/SchemaParser.php#L490 correctly), for example:But I need it inside
enum
... May enum validation throws an error before resolving & replacing$ref
property?The text was updated successfully, but these errors were encountered: