{
  "$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-scorecard-list-item-schema.json",
  "title": "RestApiListResponseOfScorecardListItem",
  "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-scorecards-api-openapi.yml#/components/schemas/RestApiListResponseOfScorecardListItem",
  "required": [
    "data",
    "pagination"
  ],
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ScorecardListItem"
      }
    },
    "pagination": {
      "$ref": "#/$defs/PaginationInfo"
    }
  },
  "$defs": {
    "PaginationInfo": {
      "required": [
        "cursor",
        "hasMore"
      ],
      "type": "object",
      "properties": {
        "cursor": {
          "type": [
            "null",
            "string"
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "description": "Pagination metadata for REST API list responses."
    },
    "ScorecardListItem": {
      "required": [
        "id",
        "name",
        "displayName",
        "description",
        "scopeQuery",
        "enabled",
        "status",
        "statusDetail",
        "updatedAt"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "description": {
          "type": [
            "null",
            "string"
          ]
        },
        "scopeQuery": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "status": {
          "type": "string"
        },
        "statusDetail": {
          "type": [
            "null",
            "string"
          ]
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "description": "Scorecard list view -- minimal fields for collection responses (ADR-011 decision 8). Mirrors\nTeamListItem's minimal-list convention: the full\ndefinition (rules, scope, schedule, ladder levels) is reserved for ScorecardDetail."
    }
  }
}