prism icon indicating copy to clipboard operation
prism copied to clipboard

cli-client options (e.g. checkSecurity=false)

Open mordv opened this issue 3 years ago • 1 comments

Hi! Great tool guys, thanks for your work!

I have a problem with security validations in cli-client right now. I get in every response: "Your request does not fulfill the security requirements and no HTTP unauthorized response was found in the spec, so Prism is generating this error for you."

And I see neither in --help nor in docs how to turn the validation off.

Is there any way to configure this stuff:

{
    mock: false,
    validateRequest: true,
    validateResponse: true,
    checkSecurity: false,
    errors: true,
    upstream: new URL('https://api.example.com'),
 }

for cli-client?

mordv avatar May 10 '21 11:05 mordv

What's the use case for needing to turn it off? Can you send Authorization: Bearer foo so you're not forgetting about that part in the code? It helps ensure its closer to being realistic.

philsturgeon avatar Sep 30 '21 20:09 philsturgeon