class CollectionSerializer < ActiveModel::Serializer
  attributes :id, :label, :type

  has_many :children

  def children
    object.children
  end

  def type
    'collection'
  end
end

class CollectionSerializer < ActiveModel::Serializer
  attributes :id, :label

  has_many :children

  def children
    object.children
  end

end

Fix collection api spec - remove used type from collection serializer
Fix collection api spec - remove used type from collection serializer
