{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentpmt-com/json-schema/agentpmt-com-issue-report-response-schema.json",
  "title": "IssueReportResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentpmt-com-issues-api-openapi.yml#/components/schemas/IssueReportResponse",
  "properties": {
    "success": {
      "type": "boolean",
      "title": "Success",
      "description": "`true` when the issue report was accepted.",
      "default": true
    },
    "message": {
      "type": "string",
      "title": "Message",
      "description": "Human-readable status message.",
      "default": "Issue report received successfully"
    },
    "data": {
      "$ref": "#/$defs/IssueReportData"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "IssueReportData": {
      "properties": {
        "issue_id": {
          "type": "string",
          "title": "Issue Id",
          "description": "ID of the issue document that was created."
        },
        "product_found": {
          "type": "boolean",
          "title": "Product Found",
          "description": "True when the reported product identifier resolved to a known product; false when the issue was still recorded against the raw identifier the caller supplied."
        },
        "lookup_method": {
          "type": "string",
          "title": "Lookup Method",
          "description": "How the product identifier was resolved (for example `object_id`, `slug`, `exact_name`, or `not_found`)."
        },
        "product_id": {
          "type": "string",
          "title": "Product Id",
          "description": "Original product identifier the caller supplied."
        },
        "product_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Product Name",
          "description": "Canonical product name, when the identifier resolved."
        },
        "status": {
          "type": "string",
          "title": "Status",
          "description": "Issue status after creation. Reports are always opened in `open`."
        }
      },
      "type": "object",
      "required": [
        "issue_id",
        "product_found",
        "lookup_method",
        "product_id",
        "status"
      ],
      "title": "IssueReportData"
    }
  }
}