Current section

Files

Jump to
oapi_open_ai lib schemas image response.ex
Raw

lib/schemas/image/response.ex

defmodule OpenAi.Image.Response do
@moduledoc """
Provides struct and type for a Image.Response
"""
@type t :: %__MODULE__{created: integer, data: [OpenAi.Image.t()]}
defstruct [:created, :data]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[created: :integer, data: [{OpenAi.Image, :t}]]
end
end