Skip to content

Validate OpenAPI response bodies against schema - #47

Merged
prayagv merged 3 commits into
mainfrom
feature/openapi-body-schema-validation
Jul 4, 2026
Merged

Validate OpenAPI response bodies against schema#47
prayagv merged 3 commits into
mainfrom
feature/openapi-body-schema-validation

Conversation

@prayagv

@prayagv prayagv commented Jul 4, 2026

Copy link
Copy Markdown
Member

Extends OpenApiResponseValidator to validate response bodies against the OpenAPI schema via swagger-request-validator, in addition to the existing documented-response and media-type checks. Base branch is fix/pact-provider-dependency-locks (#46) since this builds on the corrected lockfile.

@prayagv
prayagv force-pushed the feature/openapi-body-schema-validation branch from 504e8b7 to 2424aca Compare July 4, 2026 16:43
Adds Pact provider verification against the owned fixture, a PIT
mutation testing gate over the redaction/retry/OpenAPI-coverage logic,
and the dependency-lock and Allure-version fixes needed to keep both
gates green: the allure plugin was pinned to a version that doesn't
exist upstream, which blocked any lock regeneration, and several
transitive dependencies needed forcing to patched versions to clear
the OSV scan.
@prayagv
prayagv force-pushed the fix/pact-provider-dependency-locks branch from 30a3093 to d2475ba Compare July 4, 2026 17:02
OpenApiResponseValidator only checked that a response's status code and
media type were documented, which oversold the "OpenAPI validation"
claim. Wire the already-declared swagger-request-validator dependency
in to also validate the response body against the operation's schema,
and update CONTRACT_STRATEGY.md to reflect the actual test classes and
scope.

Also replaces the agent-tooling notes with a contributor-facing
architecture guide, consistent with the other reference frameworks in
this organization.
@prayagv
prayagv force-pushed the feature/openapi-body-schema-validation branch from 2424aca to 98247d7 Compare July 4, 2026 17:08
Base automatically changed from fix/pact-provider-dependency-locks to main July 4, 2026 17:14
@prayagv
prayagv merged commit 83f6f6f into main Jul 4, 2026
8 checks passed
@prayagv
prayagv deleted the feature/openapi-body-schema-validation branch July 4, 2026 17:43
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