Skip to content

Fail validation on invalid reference exception #121

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

Merged
merged 5 commits into from
Jun 17, 2021
Merged

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.

1 participant