-
Notifications
You must be signed in to change notification settings - Fork 325
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
1.0.60 Expects type To Be Array #461
Comments
@tomdeering-wf Thanks for raising this issue. This is the reason we have short release cycles so that we can easily identify broken issues. @bartoszm I am wondering if you could take a look at this issue? |
@tomdeering-wf sure will look at it. |
@tomdeering-wf, I have released 1.0.61 with the fix from @bartoszm. Could you please test it to confirm the issue is resolved in your case? Thanks a lot for raising the issue. Also, thank you @bartoszm for the quick response. |
When dependabot brought us from using json-schema-validator 1.0.59 to 1.0.60 in an internal project, many tests started failing. The root cause seems to be that json-schema-validator 1.0.60 expects that
"type"
should be an array rather than a simple string, even though a simple string is allowed by the spec.Here is a test case that reproduces the issue:
Validated using:
Expected: No validation errors
Actual (1.0.59): No validation errors
Actual (1.0.60):
[$.type: string found, array expected, $.properties.firstName.type: string found, array expected, $.properties.lastName.type: string found, array expected, $.properties.address.type: string found, array expected, $.properties.address.properties.street.type: string found, array expected, $.properties.address.properties.city.type: string found, array expected]
The only change that could have broken us seems to be #452, but I'm not sure how
The text was updated successfully, but these errors were encountered: