Skip to content

feat: Support openapi-core 0.23 and jsonschema-path 0.4#311

Merged
zupo merged 1 commit into
mainfrom
feat/support-openapi-core-0.23
Jun 10, 2026
Merged

feat: Support openapi-core 0.23 and jsonschema-path 0.4#311
zupo merged 1 commit into
mainfrom
feat/support-openapi-core-0.23

Conversation

@zupo

@zupo zupo commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

openapi-core 0.23.0 moved to jsonschema-path 0.4, which replaced SchemaPath.contents() with read_value(). 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.

[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 zupo force-pushed the feat/support-openapi-core-0.23 branch from a17d470 to 32e4988 Compare June 10, 2026 07:34
@zupo zupo merged commit 4dcfb2e into main Jun 10, 2026
3 checks passed
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