PhoenixSwagger.Schema.array
You're seeing just the function
array
, go back to PhoenixSwagger.Schema module for more information.
Construct an array schema, where the array items schema is a ref to the given name.
Examples
iex> PhoenixSwagger.Schema.array(:User)
%PhoenixSwagger.Schema{
items: %PhoenixSwagger.Schema{"$ref": "#/definitions/User"},
type: :array
}
iex> PhoenixSwagger.Schema.array(:string)
%PhoenixSwagger.Schema{
items: %PhoenixSwagger.Schema{type: :string},
type: :array
}