lib/schemas/content/symlink_links.ex

defmodule GitHub.Content.SymlinkLinks do
  @moduledoc """
  Provides struct and type for a Content.SymlinkLinks
  """
  use GitHub.Encoder

  @type t :: %__MODULE__{
          __info__: map,
          git: String.t() | nil,
          html: String.t() | nil,
          self: String.t()
        }

  defstruct [:__info__, :git, :html, :self]

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

  def __fields__(:t) do
    [
      git: {:union, [{:string, :uri}, :null]},
      html: {:union, [{:string, :uri}, :null]},
      self: {:string, :uri}
    ]
  end
end