def add_array_type(property_schema):
 new_schema = property_schema.copy()
 new_schema['type'] = [property_schema['type'], 'array']
 return new_schema

def add_array_type ( property_schema ) : new_schema = property_schema . copy ( ) new_schema [ 'type' ] = [ property_schema [ 'type' ] , 'array' ] return new_schema
convert the parameter schema to be of type list .