PhoenixSwagger.Schema.format
You're seeing just the function
format
, go back to PhoenixSwagger.Schema module for more information.
Sets the format of a Schema with type: :string
.
Examples
iex> alias PhoenixSwagger.Schema
...> %Schema{type: :string} |> Schema.format(:datetime)
%PhoenixSwagger.Schema{type: :string, format: :datetime}