You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ Validate your API responses against your OpenAPI specification during testing, a
12
12
13
13
-**OpenAPI 3.0 & 3.1 support** — Automatic version detection from the `openapi` field
14
14
-**Response validation** — Validates response bodies against JSON Schema (Draft 07 via opis/json-schema). Supports `application/json` and any `+json` content type (e.g., `application/problem+json`)
15
+
-**Content negotiation** — Accepts the actual response `Content-Type` to handle mixed-content specs. Non-JSON responses (e.g., `text/html`, `application/xml`) are verified for spec presence without body validation; JSON-compatible responses are fully schema-validated
15
16
-**Endpoint coverage tracking** — Unique PHPUnit extension that reports which spec endpoints are covered by tests
@@ -209,13 +211,16 @@ The package auto-detects the OAS version from the `openapi` field and handles sc
209
211
210
212
Main validator class. Validates a response body against the spec.
211
213
214
+
The optional `responseContentType` parameter enables content negotiation: when provided, non-JSON content types (e.g., `text/html`) are checked for spec presence only, while JSON-compatible types proceed to full schema validation.
0 commit comments