inference_schema/parameter_types/_swagger_from_dtype.py
def handle_swagger_array(item_swagger_type, shape):
        """
        Converts a dtype type representing a sub-array to a swagger valid type

        :param item_swagger_type:
        :type item_swagger_type: dict
        :param shape:
        :type shape: numpy.dtype.shape
        :return: the converted swagger type.
        :rtype: dict
        """
        # Simple array representation
        swag_array = {'type': 'array', 'items': item_swagger_type}

        if len(shape) > 1:
            # We are dealing with a multi level array
            for dim in range(len(shape) - 1):
                swag_array = {'type': 'array', 'items': swag_array}

        return swag_array

        Converts a dtype type representing a sub-array to a swagger valid type

        :param item_swagger_type:
        :type item_swagger_type: dict
        :param shape:
        :type shape: numpy.dtype.shape
        :return: the converted swagger type.
        :rtype: dict
        
Converts a dtype type representing a sub-array to a swagger valid type
Converts a dtype type representing a sub - array to a swagger valid type
def handle_swagger_array(item_swagger_type, shape):
        swag_array = {'type': 'array', 'items': item_swagger_type}
        if len(shape) > 1:
            for dim in range(len(shape) - 1):
                swag_array = {'type': 'array', 'items': swag_array}
        return swag_array
def handle_swagger_array ( item_swagger_type , shape ) : swag_array = { 'type' : 'array' , 'items' : item_swagger_type } if len ( shape ) > 1 : for dim in range ( len ( shape ) - 1 ) : swag_array = { 'type' : 'array' , 'items' : swag_array } return swag_array
Converts a dtype type representing a sub-array to a swagger valid type
Converts a dtype type representing a sub - array to a swagger valid type
"""
        Converts a dtype type representing a sub-array to a swagger valid type

        :param item_swagger_type:
        :type item_swagger_type: dict
        :param shape:
        :type shape: numpy.dtype.shape
        :return: the converted swagger type.
        :rtype: dict
        """ # Simple array representation # We are dealing with a multi level array
the converted swagger type.
the converted swagger type .
dict
item_swagger_type
None
shape
None