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

json_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: 84f08adb021cc80864fbd0a5fc66b3d4fc3d304c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Types
  module Packages
    module Composer
      # rubocop: disable Graphql/AuthorizeTypes
      class JsonType < BaseObject
        graphql_name 'PackageComposerJsonType'
        description 'Represents a composer JSON file'

        field :license, GraphQL::Types::String, null: true, description: 'License set in the Composer JSON file.'
        field :name, GraphQL::Types::String, null: true, description: 'Name set in the Composer JSON file.'
        field :type, GraphQL::Types::String, null: true, description: 'Type set in the Composer JSON file.'
        field :version, GraphQL::Types::String, null: true, description: 'Version set in the Composer JSON file.'
      end
    end
  end
end