PhoenixSwagger.Schema.type
You're seeing just the function
type
, go back to PhoenixSwagger.Schema module for more information.
Sets the type of for the schema.
Valid values are :string
, :integer
, :number
, :object
, :array
, :boolean
, :null
,
or a list of those basic types.
Examples
iex> alias PhoenixSwagger.Schema
...> %Schema{}
...> |> Schema.type(:string)
%PhoenixSwagger.Schema{type: :string}
iex> alias PhoenixSwagger.Schema
...> %Schema{}
...> |> Schema.type([:string, :integer])
%PhoenixSwagger.Schema{type: [:string, :integer]}