lib/schemas/issue/event_milestone.ex

defmodule GitHub.Issue.EventMilestone do
  @moduledoc """
  Provides struct and type for a Issue.EventMilestone
  """
  use GitHub.Encoder

  @type t :: %__MODULE__{__info__: map, title: String.t()}

  defstruct [:__info__, :title]

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

  def __fields__(:t) do
    [title: {:string, :generic}]
  end
end