extractExpectedResponseExample
Extracts expected response example from an operation for the given status code.
Only application/json content is considered. The method returns the first available response example when present.
Return
the example value if found, null otherwise
Parameters
operation
the OpenAPI operation
openAPI
the OpenAPI specification
statusCode
the HTTP status code to look for