prism
prism copied to clipboard
cli-client options (e.g. checkSecurity=false)
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?
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.