Skip to content

Commit c651498

Browse files
authored
Merge pull request #1115 from python-openapi/dependabot/pip/jsonschema-path-0.4.4
Bump jsonschema-path from 0.4.2 to 0.4.4
2 parents 55c0918 + d8e3a79 commit c651498

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

openapi_core/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ def check_spec(self) -> None:
297297
try:
298298
validate(
299299
self.spec.read_value(),
300-
base_uri=self.config.spec_base_uri
301-
or self.spec.accessor.resolver._base_uri, # type: ignore[attr-defined]
300+
base_uri=self.config.spec_base_uri or self.spec.base_uri,
302301
cls=cls,
303302
)
304303
except ValidatorDetectError:

poetry.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ openapi-schema-validator = ">=0.7.0,<0.9.0"
7171
openapi-spec-validator = "^0.8.0"
7272
requests = {version = "*", optional = true}
7373
werkzeug = ">=2.1.0"
74-
jsonschema-path = "^0.4.2"
74+
jsonschema-path = "^0.4.5"
7575
jsonschema = "^4.23.0"
7676
multidict = {version = "^6.0.4", optional = true}
7777
aioitertools = {version = ">=0.11,<0.14", optional = true}

tests/unit/unmarshalling/test_path_item_params_validator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
class TestPathItemParamsValidator:
17-
@pytest.fixture(scope="session")
17+
@pytest.fixture
1818
def spec_dict(self):
1919
return {
2020
"openapi": "3.0.0",
@@ -43,11 +43,11 @@ def spec_dict(self):
4343
},
4444
}
4545

46-
@pytest.fixture(scope="session")
46+
@pytest.fixture
4747
def spec(self, spec_dict):
4848
return SchemaPath.from_dict(spec_dict)
4949

50-
@pytest.fixture(scope="session")
50+
@pytest.fixture
5151
def request_unmarshaller(self, spec):
5252
return V30RequestUnmarshaller(spec)
5353

0 commit comments

Comments
 (0)