{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/componecat-ai/json-schema/componecat-ai-rest-api-list-response-of-kind-relationship-assignment-item-schema.json",
  "title": "RestApiListResponseOfKindRelationshipAssignmentItem",
  "description": "Standard REST API response envelope for a collection of resources.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/componecat-ai-kind-relationship-assignments-api-openapi.yml#/components/schemas/RestApiListResponseOfKindRelationshipAssignmentItem",
  "required": [
    "data",
    "pagination"
  ],
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/KindRelationshipAssignmentItem"
      }
    },
    "pagination": {
      "$ref": "#/$defs/PaginationInfo"
    }
  },
  "$defs": {
    "KindRelationshipAssignmentItem": {
      "required": [
        "kindId",
        "relationshipKindId",
        "allowAsSource",
        "allowAsTarget",
        "displayOrder"
      ],
      "type": "object",
      "properties": {
        "kindId": {
          "type": "string",
          "format": "uuid"
        },
        "relationshipKindId": {
          "type": "string",
          "format": "uuid"
        },
        "allowAsSource": {
          "type": "boolean"
        },
        "allowAsTarget": {
          "type": "boolean"
        },
        "displayOrder": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int32"
        }
      },
      "description": "Kind–relationship assignment item for list and create responses."
    },
    "PaginationInfo": {
      "required": [
        "cursor",
        "hasMore"
      ],
      "type": "object",
      "properties": {
        "cursor": {
          "type": [
            "null",
            "string"
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "description": "Pagination metadata for REST API list responses."
    }
  }
}