Current section
Files
Jump to
Current section
Files
lib/polarex/schemas/benefit_git_hub_repository_update.ex
defmodule Polarex.BenefitGitHubRepositoryUpdate do
@moduledoc """
Provides struct and type for a BenefitGitHubRepositoryUpdate
"""
@type t :: %__MODULE__{
description: String.t() | nil,
metadata: map | nil,
properties: Polarex.BenefitGitHubRepositoryCreateProperties.t() | nil,
type: String.t()
}
defstruct [:description, :metadata, :properties, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
description: {:union, [:string, :null]},
metadata: :map,
properties: {:union, [{Polarex.BenefitGitHubRepositoryCreateProperties, :t}, :null]},
type: {:const, "github_repository"}
]
end
end