====test==== Prism shall return output violations as an HTTP Response when ran with the --errors flag Testing a not enough items in an array case ====spec==== openapi: 3.1.0 jsonSchemaDialect: https://json-schema.org/draft/2019-09/schema paths: /path: get: summary: Your GET endpoint responses: '200': description: OK content: application/json: examples: example-1: value: - placed - approved - rejected schema: type: array contains: enum: - placed - approved - delivered minContains: 3 ====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","2"],"severity":"Error","code":"enum","message":"Request body property 2 must be equal to one of the allowed values: placed, approved, delivered"},{"location":["response","body"],"severity":"Error","code":"contains","message":"Request body must contain at least 3 valid item(s)"}]}