{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hummingdeck/json-schema/hummingdeck-decision-schema.json",
  "title": "Decision",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hummingdeck-decisions-api-openapi.yml#/components/schemas/Decision",
  "type": "object",
  "properties": {
    "shareSlug": {
      "type": "string"
    },
    "decision": {
      "type": "string",
      "enum": [
        "accepted",
        "changes_requested",
        "declined"
      ],
      "description": "Mirrors shares.decision_status"
    },
    "deckTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "viewerEmail": {
      "type": [
        "string",
        "null"
      ]
    },
    "viewerName": {
      "type": [
        "string",
        "null"
      ]
    },
    "decisionNote": {
      "type": [
        "string",
        "null"
      ]
    },
    "decidedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "shareSlug",
    "decision"
  ]
}