{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://thesoftwarelens.com/saacip/0.1/schemas/outcome.schema.json",
  "$comment": "SaaCIP 0.1 (https://thesoftwarelens.com/saacip/). Licensed under the Apache License 2.0.",
  "title": "SaaCIP 0.1 outcome",
  "description": "A person's judgement of one work item, delivered back to the capability (section 7.4).",
  "type": "object",
  "required": [
    "ref",
    "outcome"
  ],
  "properties": {
    "ref": {
      "$ref": "common.schema.json#/$defs/ref"
    },
    "outcome": {
      "$ref": "common.schema.json#/$defs/outcomeValue"
    },
    "action_worked": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether the action taken for this item worked, when a person said so."
    },
    "note": {
      "type": "string"
    },
    "hub_ref": {
      "type": "string",
      "description": "The hub's own reference for the item, for example a ticket number."
    },
    "hub_status": {
      "type": "string",
      "description": "The hub's status for the item when the judgement was read."
    },
    "ext": {
      "$ref": "common.schema.json#/$defs/ext"
    }
  }
}
