summaryrefslogtreecommitdiff
path: root/app/graphql/types/packages/helm/maintainer_type.rb
blob: 6d25a26c46b22f658cd4bd49a5012869dfe7afa2 (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 Helm
      # rubocop: disable Graphql/AuthorizeTypes
      class MaintainerType < BaseObject
        graphql_name 'PackageHelmMaintainerType'
        description 'Represents a Helm maintainer'

        # Need to be synced with app/validators/json_schemas/helm_metadata.json#maintainers
        field :name, GraphQL::Types::String, null: true, description: 'Name of the maintainer.'
        field :email, GraphQL::Types::String, null: true, description: 'Email of the maintainer.'
        field :url, GraphQL::Types::String, null: true, description: 'URL of the maintainer.'
      end
    end
  end
end