{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.dissco.tech/schemas/developer-schema/annotation/0.4.0/annotation-processing-event.json",
  "type": "object",
  "description": "Schema specific to Services (MAS or DiSSCover) providing information to DiSSCo's annotation processing service.",
  "properties": {
    "jobId": {
      "type": "string",
      "description": "Handle of the job record, if the annotation was produced by a Machine Annotation Service"
    },
    "annotations": {
      "type": "array",
      "description": "List of annotations produced by the MAS",
      "items": {
        "$ref": "https://schemas.dissco.tech/schemas/developer-schema/annotation/0.4.0/annotation-processing-request.json"
      }
    },
    "batchMetadata": {
      "type": "array",
      "description": "Object containing batch information, if result is a batch",
      "items": {
        "$ref": "https://schemas.dissco.tech/schemas/developer-schema/annotation/0.4.0/annotation-batch-metadata.json"
      }
    },
    "batchId": {
      "type": "string",
      "format": "uuid",
      "description": "ID of batch operation. Generated by DiSSCo"
    }
  },
  "additionalProperties": false,
  "required": [
    "jobId",
    "annotations"
  ]
}