Current section

Files

Jump to
oapi_open_ai lib schemas batch errors_data.ex
Raw

lib/schemas/batch/errors_data.ex

defmodule OpenAi.Batch.ErrorsData do
@moduledoc """
Provides struct and type for a Batch.ErrorsData
"""
@type t :: %__MODULE__{
code: String.t() | nil,
line: integer | nil,
message: String.t() | nil,
param: String.t() | nil
}
defstruct [:code, :line, :message, :param]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
code: {:string, :generic},
line: :integer,
message: {:string, :generic},
param: {:string, :generic}
]
end
end