Current section

Files

Jump to
oapi_open_ai lib schemas invite request_projects.ex
Raw

lib/schemas/invite/request_projects.ex

defmodule OpenAi.Invite.RequestProjects do
@moduledoc """
Provides struct and type for a Invite.RequestProjects
"""
@type t :: %__MODULE__{id: String.t(), role: String.t()}
defstruct [:id, :role]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[id: {:string, :generic}, role: {:enum, ["member", "owner"]}]
end
end