type
macros/<filename>.yml
version: 2
macros:
  - name: <macro name>
    arguments:
      - name: <arg name>
        type: <string>
Definition
The data type of your argument. Note that this is only used for documentation purposes — there are no restrictions on the values you can use here.
Examples
Document a macro
macros/cents_to_dollars.sql
{% macro cents_to_dollars(column_name, scale=2) %}
    ({{ column_name }} / 100)::numeric(16, {{ scale }})
{% endmacro %}
macros/cents_to_dollars.yml
version: 2
macros:
  - name: cents_to_dollars
    arguments:
      - name: column_name
        type: column name or expression
        description: "The name of a column, or an expression — anything that can be `select`-ed as a column"
      - name: scale
        type: integer
        description: "The number of decimal places to round to. Default is 2."
0