Skip to content

Commit

Permalink
Upgrade jsonschema to 4.8.0 (#2252)
Browse files Browse the repository at this point in the history
Upgrades required version of jsonschema as newer version changed
some of the validation error messages and we want to be in full
control over the outcome.
  • Loading branch information
ssbarnea authored Jul 28, 2022
1 parent 1a9c031 commit 0e66999
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ repos:
- docutils
- enrich
- flaky
- jsonschema>=4.6.0
- jsonschema>=4.8.0
- pytest
- pyyaml
- rich>=11.0.0
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ importlib-metadata==4.11.4
iniconfig==1.1.1
isort==5.10.1
jinja2==3.1.2
jsonschema==4.6.0
jsonschema==4.8.0
lazy-object-proxy==1.7.1
markdown-it-py==2.1.0
markupsafe==2.1.1
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ install_requires =
ansible-compat>=2.2.0 # GPLv3
ansible-core>=2.12.0 # GPLv3
enrich>=1.2.6
jsonschema>=4.6.0 # MIT, first version to have ordered keys in output
jsonschema>=4.8.0 # MIT, first version to have ordered keys in output
packaging
pyyaml
pytest
Expand Down
2 changes: 1 addition & 1 deletion src/ansiblelint/rules/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def matchyaml(self, file: Lintable) -> List[MatchError]:
(
"examples/roles/invalid_requirements_schema/meta/requirements.yml",
"requirements",
["'collections' is a required property"],
["{'foo': 'bar'} is not valid under any of the given schemas"],
),
(
"examples/roles/invalid_meta_schema/meta/main.yml",
Expand Down

0 comments on commit 0e66999

Please sign in to comment.