{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://thesoftwarelens.com/saacip/0.2/schemas/report-response.schema.json",
  "$comment": "SaaCIP 0.2 (https://thesoftwarelens.com/saacip/). Licensed under the Apache License 2.0.",
  "title": "SaaCIP 0.2 HTTP binding: report response",
  "description": "201 (created) or 200 (updated or unchanged) response to PUT <base>/work-items/<ref>/.",
  "type": "object",
  "required": [
    "hub_ref",
    "status",
    "created"
  ],
  "properties": {
    "hub_ref": {
      "type": "string",
      "description": "The hub's own reference for the work item, for example a ticket number."
    },
    "status": {
      "type": "string",
      "description": "The hub's current status for the item, in the hub's own words."
    },
    "created": {
      "type": "boolean",
      "description": "true when this call created the item."
    },
    "updated": {
      "type": "boolean",
      "description": "true when this call added a note to the item."
    },
    "reopened": {
      "type": "boolean",
      "description": "true when the note reopened a closed item and cleared its outcome."
    },
    "handed_off": {
      "type": "boolean",
      "description": "True when the hub accepted a hand-off in this report. Added in 0.2."
    }
  }
}
