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

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

module Types
  module Packages
    module Pypi
      class MetadatumType < BaseObject
        graphql_name 'PypiMetadata'
        description 'Pypi metadata'

        authorize :read_package

        field :author_email, GraphQL::Types::String, null: true,
          description: 'Author email address(es) in RFC-822 format.'
        field :description, GraphQL::Types::String, null: true,
          description: 'Longer description that can run to several paragraphs.'
        field :description_content_type, GraphQL::Types::String, null: true,
          description: 'Markup syntax used in the description field.'
        field :id, ::Types::GlobalIDType[::Packages::Pypi::Metadatum], null: false, description: 'ID of the metadatum.'
        field :keywords, GraphQL::Types::String, null: true, description: 'List of keywords, separated by commas.'
        field :metadata_version, GraphQL::Types::String, null: true, description: 'Metadata version.'
        field :required_python, GraphQL::Types::String, null: true, description: 'Required Python version of the Pypi package.'
        field :summary, GraphQL::Types::String, null: true, description: 'One-line summary of the description.'
      end
    end
  end
end