Added
- Prism now includes a new
proxy
command that will validate the request coming in, send the request to an upstream server and then validate the response coming back #669 - Prism has now support for OpenAPI 3.0 callbacks #716
- Support for encoding > allowReserved flag when validating application/x-www-form-urlencoded body #630
- Validating output status code against available response specs #648
- Support for Contract Testing #650
- The CLI will now propose operation paths with meaningful examples #671
- Prism reloads itself every time there are changes being made to the specified document #689
- Path parameters are now validated against schema #702
- CLI now displays a timestamp for all the logged operations #779
- Prism body validator will now show allowed enum parameters in error messages #828
Fixed
- Killing sub-process only if Prism is running in multi-process mode #645
- UUIDs are never generated as URNs #661
- Relative references for remote documents are now resolved correctly #669
- Core types are now correctly referenced in the HTTP package, restoring the type checks when using the package separately #701
- By upgrading Json Schema Faker to the latest version, now the schemas with
additionalProperties:false
/additionalProperties:true
/additionalProperties:object
will be correctly handled when dynamic mocking is enabled #719 - Making a request to an operation with a
deprecated
parameter is no longer causing Prism to return a 422 response #721 - The
access-control-allow-origin
header, when CORS is enabled, will now reflect the request origin AND set the Credentials header #797 - When the request is missing the
Accept
header, Prism will now effectively treat it as a*/*
, according to the respective RFC #802 - Prism will now passthrough as response anything that matches
text/*
instead of onlytext/plain
#796