openapi-backend icon indicating copy to clipboard operation
openapi-backend copied to clipboard

Return mocked headers from mockResponseForOperation(...)

Open jakecampbell opened this issue 3 years ago • 0 comments

Headers are often needed when mocking api responses. When using mockResponseForOperation(...) method, it would be helpful to have the same functionality available for the header definitions for the responses. mockResponseForOperation(...) could return a { status, mock, headers } object.

jakecampbell avatar Jan 26 '22 20:01 jakecampbell