{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/componecat-ai/json-schema/componecat-ai-rest-api-response-of-catalog-relationship-item-schema.json",
  "title": "RestApiResponseOfCatalogRelationshipItem",
  "description": "Standard REST API response envelope for a single resource.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/componecat-ai-relationships-api-openapi.yml#/components/schemas/RestApiResponseOfCatalogRelationshipItem",
  "required": [
    "data"
  ],
  "type": "object",
  "properties": {
    "data": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/CatalogRelationshipItem"
        }
      ]
    }
  },
  "$defs": {
    "CatalogRelationshipItem": {
      "required": [
        "id",
        "relationshipKindId",
        "relationshipKindKey",
        "sourceEntityId",
        "targetEntityId",
        "description",
        "source",
        "confidence",
        "createdAt",
        "updatedAt"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "relationshipKindId": {
          "type": "string",
          "format": "uuid"
        },
        "relationshipKindKey": {
          "type": [
            "null",
            "string"
          ]
        },
        "sourceEntityId": {
          "type": "string",
          "format": "uuid"
        },
        "targetEntityId": {
          "type": "string",
          "format": "uuid"
        },
        "description": {
          "type": [
            "null",
            "string"
          ]
        },
        "source": {
          "type": "string"
        },
        "confidence": {
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
          "type": [
            "number",
            "string"
          ],
          "format": "double"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "description": "Catalog relationship item for list and detail responses."
    }
  }
}