====test==== When I send a request to an operation And this operation has a complex schema (with no primitives) And the returned content type is a text/html string Then I should get back a 500 error because we do not know how to serialise it ====spec==== openapi: "3.0.1" paths: /: get: responses: 200: content: text/html: schema: type: object properties: name: type: string example: Clark surname: type: string example: Kent ====server==== mock -p 4010 ${document} ====command==== curl -i http://localhost:4010/ -H 'accept: text/html' ====expect==== HTTP/1.1 500 Internal Server Error {"type":"https://stoplight.io/prism/errors#NO_COMPLEX_OBJECT_TEXT","title":"Cannot serialise complex objects as text","status":500,"detail":"Cannot serialise complex objects as text"}