{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://thesoftwarelens.com/saacip/0.1/schemas/report.schema.json",
  "$comment": "SaaCIP 0.1 (https://thesoftwarelens.com/saacip/). Licensed under the Apache License 2.0.",
  "title": "SaaCIP 0.1 Resident binding: report request",
  "description": "PUT <base>/work-items/<ref>/ (Resident profile, section 6). The first call for a ref creates the work item; later calls with the same ref add a note. Repeating a call has no further effect.",
  "type": "object",
  "anyOf": [
    {
      "required": [
        "subject",
        "description_html"
      ]
    },
    {
      "required": [
        "note"
      ]
    }
  ],
  "properties": {
    "subject": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "description_html": {
      "type": "string",
      "maxLength": 20000
    },
    "priority_level": {
      "type": "integer",
      "minimum": 1,
      "maximum": 4,
      "description": "How urgent the capability thinks the item is: 1 is the most urgent."
    },
    "note": {
      "type": "string",
      "maxLength": 5000,
      "description": "An update to an open item: what changed since the last report."
    },
    "ext": {
      "$ref": "common.schema.json#/$defs/ext"
    }
  }
}
