====test==== Given form data expected in request body and valid data sent then return OK ====spec==== openapi: '3.1.0' paths: /path: post: responses: 200: content: text/plain: example: ok requestBody: content: application/x-www-form-urlencoded: schema: type: object if: properties: id: type: integer then: properties: status: const: open ====server==== mock -p 4010 ${document} ====command==== curl -i -X POST http://localhost:4010/path -H "Content-Type: application/x-www-form-urlencoded" --data "id=123&status=open" ====expect==== HTTP/1.1 200 OK content-type: text/plain ok