diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8f0446727d..935fa98755 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -158,7 +158,7 @@ repos: - docutils - enrich - flaky - - jsonschema>=4.6.0 + - jsonschema>=4.8.0 - pytest - pyyaml - rich>=11.0.0 diff --git a/requirements.txt b/requirements.txt index 06deb7dd0c..68923a17bd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/setup.cfg b/setup.cfg index 2708317d20..dfef17d7f0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/src/ansiblelint/rules/schema.py b/src/ansiblelint/rules/schema.py index 0ae9dcd8f9..1a74f97142 100644 --- a/src/ansiblelint/rules/schema.py +++ b/src/ansiblelint/rules/schema.py @@ -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",