lib/schemas/api_overview.ex

defmodule GitHub.ApiOverview do
  @moduledoc """
  Provides struct and type for ApiOverview
  """

  @type t :: %__MODULE__{
          actions: [String.t()] | nil,
          api: [String.t()] | nil,
          dependabot: [String.t()] | nil,
          git: [String.t()] | nil,
          hooks: [String.t()] | nil,
          importer: [String.t()] | nil,
          packages: [String.t()] | nil,
          pages: [String.t()] | nil,
          ssh_key_fingerprints: map | nil,
          ssh_keys: [String.t()] | nil,
          verifiable_password_authentication: boolean,
          web: [String.t()] | nil
        }

  defstruct [
    :actions,
    :api,
    :dependabot,
    :git,
    :hooks,
    :importer,
    :packages,
    :pages,
    :ssh_key_fingerprints,
    :ssh_keys,
    :verifiable_password_authentication,
    :web
  ]

  @doc false
  @spec __fields__(atom) :: keyword
  def __fields__(type \\ :t)

  def __fields__(:t) do
    [
      actions: {:array, :string},
      api: {:array, :string},
      dependabot: {:array, :string},
      git: {:array, :string},
      hooks: {:array, :string},
      importer: {:array, :string},
      packages: {:array, :string},
      pages: {:array, :string},
      ssh_key_fingerprints: :map,
      ssh_keys: {:array, :string},
      verifiable_password_authentication: :boolean,
      web: {:array, :string}
    ]
  end
end