{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mammoth-io/json-schema/mammoth-io-annotation-response-schema.json",
  "title": "AnnotationResponse",
  "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/AnnotationResponse",
  "properties": {
    "id": {
      "type": "integer"
    },
    "target_type": {
      "type": "string"
    },
    "target_id": {
      "type": "integer"
    },
    "project_id": {
      "type": "integer"
    },
    "status": {
      "type": "string"
    },
    "resolved_by": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "resolved_at": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_by": {
      "type": "integer"
    },
    "created_at": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "comments": {
      "items": {
        "$ref": "#/$defs/AnnotationCommentResponse"
      },
      "type": "array"
    }
  },
  "type": "object",
  "required": [
    "created_by",
    "id",
    "project_id",
    "status",
    "target_id",
    "target_type"
  ],
  "$defs": {
    "AnnotationCommentResponse": {
      "properties": {
        "id": {
          "type": "integer"
        },
        "annotation_id": {
          "type": "integer"
        },
        "body": {
          "type": "string"
        },
        "created_by": {
          "type": "integer"
        },
        "created_at": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object",
      "required": [
        "annotation_id",
        "body",
        "created_by",
        "id"
      ],
      "title": "AnnotationCommentResponse"
    }
  }
}