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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/packages/pypi/metadatum_type.rb')
-rw-r--r--app/graphql/types/packages/pypi/metadatum_type.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/graphql/types/packages/pypi/metadatum_type.rb b/app/graphql/types/packages/pypi/metadatum_type.rb
index 63452d8ab6e..8ccdb592c52 100644
--- a/app/graphql/types/packages/pypi/metadatum_type.rb
+++ b/app/graphql/types/packages/pypi/metadatum_type.rb
@@ -9,8 +9,17 @@ module Types
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