def resolve_array_refs(obj)
      items = obj[ITEMS_KEY]

      case items
      when Array
        return resolve_items_array(items)
      when Hash
        # handle a nested any of key
        any_of = items[ANY_OF_KEY]
        return resolve_items_array(any_of) if any_of.is_a?(Array)

        resolve_reference_string(items[REF_KEY])
        return [class_name_from_ref(items[REF_KEY])].compact
      else
        return []
      end
    end
def resolve_array_refs(obj)
      items = obj[ITEMS_KEY]

      case items
      when Array
        return resolve_items_array(items)
      when Hash
        # handle a nested any of key
        any_of = items[ANY_OF_KEY]
        return resolve_items_array(any_of) if any_of.is_a?(Array)

        resolve_reference_string(items[REF_KEY])
        return [class_name_from_ref(items[REF_KEY])].compact
      else
        return []
      end
    end
Resolves any references buied in the `items` property of an array
 definition. Returns a list of collection types in the array.
 @param obj [Hash] the array property schema
 @return [Array] types contained in the array