lib/schemas/codespace/runtime_constraints.ex

defmodule GitHub.Codespace.RuntimeConstraints do
  @moduledoc """
  Provides struct and type for a Codespace.RuntimeConstraints
  """
  use GitHub.Encoder

  @type t :: %__MODULE__{__info__: map, allowed_port_privacy_settings: [String.t()] | nil}

  defstruct [:__info__, :allowed_port_privacy_settings]

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

  def __fields__(:t) do
    [allowed_port_privacy_settings: {:union, [[string: :generic], :null]}]
  end
end