{
  "$id": "mokili.choice/1",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "A person's choice after a decision's runs: the option taken, and why. It\nmay differ from the recommendation; the reason then says what the runs could not.",
  "properties": {
    "chooser": {
      "description": "Who chose, as they declared it",
      "minLength": 1,
      "title": "Chooser",
      "type": "string"
    },
    "created_at": {
      "title": "Created At",
      "type": "string"
    },
    "decision_run": {
      "pattern": "^sha256:[0-9a-f]{64}$",
      "title": "Decision Run",
      "type": "string"
    },
    "option": {
      "minLength": 1,
      "title": "Option",
      "type": "string"
    },
    "reason": {
      "minLength": 1,
      "title": "Reason",
      "type": "string"
    },
    "recommended": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "What the runs recommended, copied so the choice reads alone",
      "title": "Recommended"
    },
    "schema": {
      "const": "mokili.choice/1",
      "title": "Schema",
      "type": "string"
    }
  },
  "required": [
    "schema",
    "created_at",
    "decision_run",
    "option",
    "chooser",
    "reason",
    "recommended"
  ],
  "title": "Choice",
  "type": "object"
}
