def get_response_example(cls, operation, response):
        """ Get example for response object by operation object

        :param Operation operation: operation object
        :param Response response: response object
        """
        path = "#/paths/'{}'/{}/responses/{}".format(
            operation.path, operation.method, response.name)
        kwargs = dict(paths=[path])

        if response.type in PRIMITIVE_TYPES:
            result = cls.get_example_value_for_primitive_type(
                response.type, response.properties, response.type_format, **kwargs)
        else:
            schema = SchemaObjects.get(response.type)
            result = cls.get_example_by_schema(schema, **kwargs)

        return result
def get_response_example ( cls , operation , response ) : path = "#/paths/'{}'/{}/responses/{}" . format ( operation . path , operation . method , response . name ) kwargs = dict ( paths = [ path ] ) if response . type in PRIMITIVE_TYPES : result = cls . get_example_value_for_primitive_type ( response . type , response . properties , response . type_format , ** kwargs ) else : schema = SchemaObjects . get ( response . type ) result = cls . get_example_by_schema ( schema , ** kwargs ) return result
Get example for response object by operation object

        :param Operation operation: operation object
        :param Response response: response object