PhoenixSwagger.Schema.max_length

You're seeing just the function max_length, go back to PhoenixSwagger.Schema module for more information.
Link to this function

max_length(model, value)

View Source

Constrains the maximum length of a string to the given value.

Examples

iex> alias PhoenixSwagger.Schema
...> %Schema{type: :string}
...> |> Schema.max_length(255)
%PhoenixSwagger.Schema{type: :string, maxLength: 255}