Closed JumpHoysteria closed 4 months ago
@JumpHoysteria could you try adding the produces
property to your spec to see if that resolves your issue? Its not a required property, but Prism does use that to process responses.
Thank you so very much! It works now! I had a similar case that a request with json-object in body wasn't validated, but with analogous reasoning the route-specific addition of "consumes" solved the issue! Cheers again and have a nice weekend!
This is my OAS2.0-YAML:
Then I start the proxy:
Then, in a separate shell I put:
The important thing here (at least my interpretation) there are headers returned along with an array of strings...
Current Behavior
According to the scheme, this should throw a validation error, since it expects an array of integers but receives one with strings ["%All","CommunityAdmin","SystemAdmin"]. However, nothing shows up in the proxy shell:
Expected Behavior
I would like something along the lines of
[17:06:03] » [VALIDATOR] ‼ warning Violation: Message
Possible Workaround/Solution
I've looked into -v=trace, which made me realise that there aren't any headers as per prism, so it might be a parsing issue?
Environment
Please let me know if I can provide you with any further information. Thank you so very much!!