Welcome to mirror list, hosted at ThFree Co, Russian Federation.

metadatum_type.rb « composer « packages « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9d4ce3cebd4acb3756838ccf704cb8858322a8f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Types
  module Packages
    module Composer
      class MetadatumType < BaseObject
        graphql_name 'ComposerMetadata'
        description 'Composer metadata'

        authorize :read_package

        field :target_sha, GraphQL::STRING_TYPE, null: false, description: 'Target SHA of the package.'
        field :composer_json, Types::Packages::Composer::JsonType, null: false, description: 'Data of the Composer JSON file.'
      end
    end
  end
end