Skip to content

Commit ff1804c

Browse files
authored
Merge pull request #455 from python-openapi/feature/jsonschema-path-upgrade-3
Jsonschema-path upgrade 3
2 parents 29db12b + de3d8a8 commit ff1804c

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

openapi_spec_validator/validation/keywords.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ def __call__(
366366

367367
def _get_path_param_names(self, params: SchemaPath) -> Iterator[str]:
368368
for param in params:
369-
if param["in"] == "path":
370-
yield param["name"]
369+
if (param / "in").read_str() == "path":
370+
yield (param / "name").read_str()
371371

372372
def _get_path_params_from_url(self, url: str) -> Iterator[str]:
373373
formatter = string.Formatter()

poetry.lock

Lines changed: 9 additions & 8 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
@@ -26,7 +26,7 @@ classifiers = [
2626
dependencies = [
2727
"jsonschema >=4.24.0,<4.25.0",
2828
"openapi-schema-validator >=0.6.1,<0.7.0",
29-
"jsonschema-path >=0.4.0b2,<0.5.0",
29+
"jsonschema-path >=0.4.0b8,<0.5.0",
3030
"lazy-object-proxy >=1.7.1,<2.0",
3131
]
3232

0 commit comments

Comments
 (0)