====test==== Prism shall return output violations as an HTTP Response when ran with the --errors flag Testing a value not in enum case ====spec==== openapi: 3.0.0 paths: /path: get: summary: Your GET endpoint responses: '200': description: OK content: application/json: examples: example-1: value: gone schema: type: string enum: - placed - approved - delivered ====server==== mock -p 4010 ${document} --errors ====command==== curl -i http://localhost:4010/path ====expect==== HTTP/1.1 500 Internal Server Error {"type":"https://stoplight.io/prism/errors#VIOLATIONS","title":"Request/Response not valid","status":500,"detail":"Your request/response is not valid and the --errors flag is set, so Prism is generating this error for you.","validation":[{"location":["response","body"],"severity":"Error","code":"enum","message":"Request body must be equal to one of the allowed values: placed, approved, delivered"}]}