Validate OpenAPI response bodies against schema - #47
Merged
Conversation
prayagv
force-pushed
the
feature/openapi-body-schema-validation
branch
from
July 4, 2026 16:43
504e8b7 to
2424aca
Compare
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
force-pushed
the
fix/pact-provider-dependency-locks
branch
from
July 4, 2026 17:02
30a3093 to
d2475ba
Compare
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
force-pushed
the
feature/openapi-body-schema-validation
branch
from
July 4, 2026 17:08
2424aca to
98247d7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.