python-openapi / openapi-spec-validator

OpenAPI Spec Validator is a CLI, pre-commit hook and python package that validates OpenAPI Specs against the OpenAPI 2.0 (aka Swagger), OpenAPI 3.0 and OpenAPI 3.1 specification.
Apache License 2.0
337 stars 62 forks source link

jsonschema V4.18.0 breaks openapi-spec-validator #242

Closed RasmusFangel closed 1 year ago

RasmusFangel commented 1 year ago

When pulling the recent version of https://github.com/python-jsonschema/jsonschema it breaks this tool:

AttributeError: module 'jsonschema._utils' has no attribute 'load_schema'

jsonschema breaking version: https://github.com/python-jsonschema/jsonschema/releases/tag/v4.18.0

Edit: I've looked into it a bit further and believe the issues is with the openapi-schema-validator version of jsonschema: https://github.com/python-openapi/openapi-schema-validator/blob/master/pyproject.toml#L58

RasmusFangel commented 1 year ago

Turns out we have some hardcoded versions, apologies for this ticket.