if 'type' in spec['schema'].keys() and spec['schema']['type'] == 'array':