def get_response_definition(response, resolver):
    """
    Get response definition from openapi schema
    """
    if '$ref' in response:
        resp_ref = resolver.resolve(response['$ref'])
        return resp_ref[1]
    if 'content' in response:
        return response
    return None