Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
schema: fix unknown value validation bug (#1047)
The validate function should exit early in the case that a value is not wholly known. This is the intent of the comment and earlier code in this file - however, subsequent refactors introduced a bug in which one aspect of validation was run for unknown values: deprecation warnings. Deprecation warnings for known values are generated by validateType lower down. This fix ensures that deprecation warnings are not shown for unknown values, while still ensuring we exit validation early for all unknown values.
- Loading branch information