Skip to content

Conversation

@vearutop
Copy link
Member

@vearutop vearutop commented Jun 17, 2021

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 swaggest/php-swagger2-schema#8.

@vearutop vearutop merged commit ec90855 into master Jun 17, 2021
@vearutop vearutop deleted the fail-unresolved-ref branch June 17, 2021 09:12
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

Successfully merging this pull request may close these issues.

2 participants