Skip to content

Update/openapi-core 0.23.0 and jsonschema-path 0.4#292

Closed
GusevaPolina wants to merge 3 commits into
Pylons:mainfrom
GusevaPolina:update/jsonschema-path-040
Closed

Update/openapi-core 0.23.0 and jsonschema-path 0.4#292
GusevaPolina wants to merge 3 commits into
Pylons:mainfrom
GusevaPolina:update/jsonschema-path-040

Conversation

@GusevaPolina

Copy link
Copy Markdown

In jsonschema-path>=0.4 SchemaPath.contents has been replaced with SchemaPath.read_value p1c2u/jsonschema-path#225 from https://github.com/p1c2u/jsonschema-path/releases/tag/0.4.0

In openapi-core==0.23.0 the pin for jsonschema-path is upped to finally be jsonschema-path = "^0.4.5" (python-openapi/openapi-core#1105 and automatically python-openapi/openapi-core#1115) in https://github.com/python-openapi/openapi-core/releases/tag/0.23.0

@GusevaPolina

Copy link
Copy Markdown
Author

superseded by #311 🥳

@GusevaPolina GusevaPolina deleted the update/jsonschema-path-040 branch June 10, 2026 07:11
zupo added a commit that referenced this pull request Jun 10, 2026
[replaced `SchemaPath.contents()` with `read_value()`](p1c2u/jsonschema-path#225).

We switch to the new API and drop support for `openapi-core<0.23`.

The upgrade also changes how body validation surfaces errors: each
offending item is now reported as a jsonschema `ValidationError`
carrying its field path (e.g. `foo/0/bam`), instead of a single
coarse `RequestBodyValidationError` / `DataValidationError`.

Supersedes #292.
zupo added a commit that referenced this pull request Jun 10, 2026
[replaced `SchemaPath.contents()` with `read_value()`](p1c2u/jsonschema-path#225).

We switch to the new API and drop support for `openapi-core<0.23`.

The upgrade also changes how body validation surfaces errors: each
offending item is now reported as a jsonschema `ValidationError`
carrying its field path (e.g. `foo/0/bam`), instead of a single
coarse `RequestBodyValidationError` / `DataValidationError`.

Supersedes #292.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant