pactflow / swagger-mock-validator

Other
13 stars 4 forks source link

Add issue with wildcards in OpenAPI spec media types to FAQ #6

Closed basdijkstra closed 2 years ago

basdijkstra commented 2 years ago

This PR adds to the FAQ the following situation:

OpenAPI specifications support wildcards when specifying response media types. However, the swagger-mock-validator reports 'Response Body Contains Unknown Information No schema found for response body' when it encounters these wildcards, even when the consumer and provider contract are fully compatible.

The FAQ proposes the solution of replacing the media type containing wildcard(s) with a more specific media type, which will result in successful verification.

basdijkstra commented 2 years ago

Thanks @YOU54F. Commit message updated!