1# frozen_string_literal: true
2
3module API
4  module Entities
5    class PackageFile < Grape::Entity
6      expose :id, :package_id, :created_at
7      expose :file_name, :size
8      expose :file_md5, :file_sha1, :file_sha256
9      expose :pipelines, if: ->(package_file) { package_file.pipelines.present? }, using: Package::Pipeline
10    end
11  end
12end
13