{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/componecat-ai/json-schema/componecat-ai-rest-api-response-of-transitive-relationship-item-schema.json",
  "title": "RestApiResponseOfTransitiveRelationshipItem",
  "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/RestApiResponseOfTransitiveRelationshipItem",
  "required": [
    "data"
  ],
  "type": "object",
  "properties": {
    "data": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/TransitiveRelationshipItem"
      }
    }
  },
  "$defs": {
    "TransitiveRelationshipItem": {
      "required": [
        "entityId",
        "entityName",
        "entityDisplayName",
        "depth",
        "relationshipId"
      ],
      "type": "object",
      "properties": {
        "entityId": {
          "type": "string",
          "format": "uuid"
        },
        "entityName": {
          "type": "string"
        },
        "entityDisplayName": {
          "type": "string"
        },
        "depth": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int32"
        },
        "relationshipId": {
          "type": [
            "null",
            "string"
          ],
          "format": "uuid"
        }
      },
      "description": "Transitive relationship item for traversal responses."
    }
  }
}