When $ref is a part of 3rd-party schema, e.g. Swagger it is not always clear whether it is a reference, or just a string property that happens to have a name $ref. Because of such ambiguity schema validation was tolerating validation failures that are happening in a 3rd-party referenced schema.
This PR makes validation stricter, so that reference resolution failure would fail validation.
When
$ref
is a part of 3rd-party schema, e.g.Swagger
it is not always clear whether it is a reference, or just a string property that happens to have a name$ref
. Because of such ambiguity schema validation was tolerating validation failures that are happening in a 3rd-party referenced schema.This PR makes validation stricter, so that reference resolution failure would fail validation.
Related to https://github.com/swaggest/php-swagger2-schema/issues/8.