{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://gmr.github.io/pglifecycle/schemata/argument.json",
  "title": "Argument",
  "type": "object",
  "properties": {
    "mode": {
      "title": "Argument Mode",
      "description": "The mode of the argument",
      "enum": [
        "IN",
        "VARIADIC"
      ],
      "default": "IN"
    },
    "name": {
      "title": "Argument Name",
      "description": "The name of the function argument",
      "type": "string"
    },
    "data_type": {
      "title": "Argument Data Type",
      "description": "An input data type on which this aggregate function operates. To create a zero-argument aggregate function, write * in place of the list of argument specifications.\n",
      "type": "string"
    }
  },
  "requires": [
    "data_type"
  ]
}