{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schemas.apps.smartmate.io/processes/processForms/outcomes/outcome.schema.json",
  "$$target": "https://schemas.apps.smartmate.io/processes/processForms/outcomes/outcome.schema.json",
  "title": "outcome",
  "description": "Form :ref:`outcomes <outcomes>` represent actions the user can take when they complete a user task. They are represented as buttons in the interface. It optionally allows an additional form to be displayed when a specific action is chosen.",
  "oneOf": [
    {
      "$ref": "https://schemas.apps.smartmate.io/patterns/name.schema.json",
      "description": "Determines the name of the action",
      "examples": ["Approve", "Reject"]
    },
    {
      "type": "object",
      "required": [
        "title", "form"
      ],
      "properties": {
        "title": {
          "type": "string",
          "description": "Title of the form to display when this action is selected"
        },
        "form": {
          "$ref": "https://schemas.apps.smartmate.io/forms/form.schema.json"
        }
      }
    }
  ]
}
