{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mammoth-io/json-schema/mammoth-io-create-annotation-request-schema.json",
  "title": "CreateAnnotationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mammoth-io-annotations-api-openapi.yml#/components/schemas/CreateAnnotationRequest",
  "properties": {
    "target_type": {
      "$ref": "#/$defs/AnnotationTargetType"
    },
    "target_id": {
      "type": "integer",
      "description": "ID of the annotated resource"
    },
    "body": {
      "type": "string",
      "description": "Initial comment body"
    }
  },
  "type": "object",
  "required": [
    "body",
    "target_id",
    "target_type"
  ],
  "$defs": {
    "AnnotationTargetType": {
      "type": "string",
      "enum": [
        "dataset",
        "dataview",
        "workflow"
      ],
      "title": "AnnotationTargetType",
      "description": "Type of the annotated resource: dataset, dataview, or workflow"
    }
  }
}