Packages

CircleCI API Client for Elixir

Current section

Files

Jump to
circleci_client lib schemas pipeline_errors.ex
Raw

lib/schemas/pipeline_errors.ex

defmodule CircleCI.PipelineErrors do
@moduledoc """
Provides struct and type for a PipelineErrors
"""
@type t :: %__MODULE__{message: String.t(), type: String.t()}
defstruct [:message, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
message: {:string, :generic},
type:
{:enum,
["config", "config-fetch", "timeout", "permission", "other", "trigger-rule", "plan"]}
]
end
end