defmodule GitHub.CommunityProfile do @moduledoc """ Provides struct and type for CommunityProfile """ @type t :: %__MODULE__{ __info__: map, content_reports_enabled: boolean | nil, description: String.t() | nil, documentation: String.t() | nil, files: map, health_percentage: integer, updated_at: String.t() | nil } defstruct [ :__info__, :content_reports_enabled, :description, :documentation, :files, :health_percentage, :updated_at ] @doc false @spec __fields__(atom) :: keyword def __fields__(type \\ :t) def __fields__(:t) do [ content_reports_enabled: :boolean, description: {:nullable, :string}, documentation: {:nullable, :string}, files: :map, health_percentage: :integer, updated_at: {:nullable, :string} ] end end