====test==== Prism generates dynamic values for schema when the __dynamic query parameter is set. Given an operation that can produce application/json response And this operation has a response you can derive a schema from And I make a request to this operation And the request has Accept header of application/json And I add __dynamic=true to the query path Then I should get a response with dynamically generated JSON as payload ====spec==== { "info": { "name": "Test" }, "item": [ { "id": "3b4f5a70-2a8f-46ba-a04b-a6f80621ad3f", "request": { "url": { "path": ["todos"] }, "method": "GET" }, "response": [ { "description": "Get Todo Items", "code": 200, "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": "{\"title\": \"Test title\",\"description\": \"Test description\",\"priority\": 100}" } ] } ] } ====server==== mock -p 4010 ${document} ====command==== curl -i http://localhost:4010/todos?__dynamic=true -H "accept: application/json" ====expect-loose==== HTTP/1.1 200 OK {"title": "officia voluptate amet ut","description": "sit","priority": 94921765}