-
Notifications
You must be signed in to change notification settings - Fork 51
adding test_check_schema_builtin
#552
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
base: main
Are you sure you want to change the base?
Conversation
27bbb86
to
1263dd2
Compare
dfe78fc
to
c9c468f
Compare
Hi, thanks for the PR! I'm still getting up to speed on the situation re #550. But the azure-pipelines hook is already declared with
I would very strongly prefer not including unrelated changes (e.g., changing something to an ABC) in something like this. If you think something internal should change, please make that as a separate PR and explain your rationale -- class hierarchies and other project structure should not change as mere side-effects of other changes. I'm very unclear on what the new test is testing, since it doesn't seem to be reading the schema catalog data to determine which regex variant to use. Is this just a duplicate of the pre-commit hook which validates the vendored schemas? check-jsonschema/.pre-commit-config.yaml Lines 9 to 16 in 121fbf7
|
yes if you use it as a hook but but you call it with CLI and you are not aware of this specificity (could not find it and the error trace did not help either) you won't know what has happened or why it crashed...
it is related to CLI not hooks... so from a user perspective if you use builtin schema the default shall be relevant to the selected schema, not that you need to select another argument... about this PR, I did not find any validation that all builtin schemas are tested so at first added a test which helped me understand that default is not the right default for all schemas |
sure I am happy to revert the abstraction change :) |
test_check_schema_builtin
test_check_schema_builtin
adding test for #550
cc: @sirosen @edgarrmondragon