PhoenixSwagger.JsonApi.attribute

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

attribute(model, name, type, description, opts \\ [])

View Source

Defines an attribute in a JSON-API schema.

Name, type and description are accepted as positional arguments, but any other schema properties can be set through the trailing keyword arguments list.

As a convenience, required: true can be passed in the keyword args, causing the name of this attribute to be added to the "required" list of the attributes schema.