ePages-de/restdocs-wiremock

Wrong representation of response headers

otrosien opened this issue · 0 comments

Example of current format:

{
    "request": {
        "method": "GET",
        "url": "/some/thing"
    },
    "response": {
        "status": 200,
        "body": "Hello world!",
        "headers": {
            "Content-Type": ["text/plain"]
        }
    }
}

This is how wiremock wants the format (according to the docs http://wiremock.org/docs/stubbing/ )

{
    "request": {
        "method": "GET",
        "url": "/some/thing"
    },
    "response": {
        "status": 200,
        "body": "Hello world!",
        "headers": {
            "Content-Type": "text/plain"
        }
    }
}