{
  "diagnostics": {
    "attributes": {
      "invalidFiles": 3,
      "validation": {
        "cascadingErrors": 0,
        "durationMs": 18,
        "errors": [
          {
            "category": "MODEL",
            "code": "IllegalStateException",
            "file": "ChinookInvoiceLineQueryModel.qm",
            "message": "duplicate query model resource in namespace: ChinookInvoiceLineQueryModel",
            "severity": "ERROR",
            "type": "QM"
          },
          {
            "category": "MODEL",
            "code": "IllegalStateException",
            "file": "ChinookInvoiceQueryModel.qm",
            "message": "duplicate query model resource in namespace: ChinookInvoiceLineQueryModel",
            "severity": "ERROR",
            "type": "QM"
          },
          {
            "category": "MODEL",
            "code": "IllegalStateException",
            "file": "ChinookInvoiceTimeQueryModel.qm",
            "message": "duplicate query model resource in namespace: ChinookInvoiceLineQueryModel",
            "severity": "ERROR",
            "type": "QM"
          }
        ],
        "invalidFiles": 3,
        "namespace": "chinook",
        "path": "<redacted-path>",
        "totalFiles": 6,
        "valid": false,
        "validFiles": 3,
        "warnings": []
      }
    },
    "warnings": [
      "Detached model validation rejected the candidate."
    ]
  },
  "engine": "java",
  "error": {
    "code": "MODEL_VALIDATE_FAILED",
    "lifecycle": {
      "affectedBindingGenerations": [
        {
          "backendId": "runtime-registry:chinook-sqlite",
          "bindingKey": "runtime:namespace-default:chinook",
          "generation": "f04995a6-94b0-4c1b-85aa-5f15791e8628:2"
        }
      ],
      "beforeCatalogGeneration": "catalog:e65b5f7e-62b1-4b72-87c7-2035f32f2069:12",
      "catalogState": "ACTIVE",
      "diagnostics": [
        {
          "message": "Detached model validation failed (IllegalStateException).",
          "phase": "validate.qm",
          "suggestedNextAction": "Fix the model definition and retry validation.",
          "target": "ChinookInvoiceLineQueryModel"
        },
        {
          "message": "Detached model validation failed (IllegalStateException).",
          "phase": "validate.qm",
          "suggestedNextAction": "Fix the model definition and retry validation.",
          "target": "ChinookInvoiceQueryModel"
        },
        {
          "message": "Detached model validation failed (IllegalStateException).",
          "phase": "validate.qm",
          "suggestedNextAction": "Fix the model definition and retry validation.",
          "target": "ChinookInvoiceTimeQueryModel"
        }
      ],
      "failedTargets": [
        "ChinookInvoiceLineQueryModel",
        "ChinookInvoiceQueryModel",
        "ChinookInvoiceTimeQueryModel"
      ],
      "namespace": "chinook",
      "sourceRevision": "source:65bd5c43-880b-43d9-8b5a-a6b64cb24081:g0:n6"
    },
    "lifecycleCode": "CATALOG_VALIDATION_FAILED",
    "message": "Detached model validation rejected the candidate.",
    "model": "ChinookInvoiceLineQueryModel",
    "phase": "models.validate",
    "safeToAutoRepair": false,
    "suggestedNextAction": "Fix the model definition and retry validation."
  },
  "runtimeApiVersion": "foggy-runtime-api/v1",
  "success": false
}
