Closed elielr01 closed 3 years ago
I would open this issue with swagger-ui project directly.
Oh okok. Then I'll close this and check with swagger-ui. Thanks for the info!
You need to add a value to your response example:
BadRequest: {
value: {
/* example code */
}
}
I ran into the same issue and found it that this was barely documented
Hello guys, thanks for this great library. Really enjoying it so far!
I have found that for responses that have multiple examples, the select with all the examples appear correctly, but when selecting another option it does not changes the example shown.
Example 1: Bad Request
Change to example 2: Invalid Payload
This is the extract of the OpenAPI definition of my response in JSON format:
I checked using the redux inspector and it is correctly dispatching the action
oas3_set_active_examples_member
, so Idk if that could be a hint?If I'm doing something wrong, I would appreciate it if someone could point out to me what's my error 😅