{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/intruder/json-schema/intruder-comment-schema.json",
  "title": "Comment",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/intruder-issues-api-openapi.yml#/components/schemas/Comment",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "content": {
      "type": "string",
      "readOnly": true
    },
    "commenter_type": {
      "allOf": [
        {
          "$ref": "#/$defs/CommenterTypeEnum"
        }
      ],
      "readOnly": true
    },
    "user": {
      "type": [
        "string",
        "null"
      ],
      "format": "email",
      "readOnly": true
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "edited_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true
    }
  },
  "required": [
    "commenter_type",
    "content",
    "created_at",
    "edited_at",
    "id",
    "user"
  ],
  "$defs": {
    "CommenterTypeEnum": {
      "enum": [
        "user",
        "greg_ai"
      ],
      "type": "string",
      "description": "* `user` - USER\n* `greg_ai` - GREG_AI"
    }
  }
}