{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://dicworkflowkit.local/schemas/ontology-patch.schema.json",
  "title": "DIC Ontology Patch",
  "description": "Declarative semantic effects produced by one authorized ontology action.",
  "type": "object",
  "properties": {
    "addObjects": {
      "type": "array",
      "items": {
        "$ref": "ontology-snapshot.schema.json#/$defs/object"
      }
    },
    "addLinks": {
      "type": "array",
      "items": {
        "$ref": "ontology-snapshot.schema.json#/$defs/link"
      }
    },
    "lifecycleTransitions": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["objectId", "to"],
        "properties": {
          "objectId": { "type": "string" },
          "to": {
            "enum": [
              "draft",
              "confirmed",
              "active",
              "deprecated",
              "superseded",
              "rejected",
              "open",
              "approved",
              "in_progress",
              "resolved",
              "blocked"
            ]
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
