{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frase-io/json-schema/frase-io-paginated-rule-sets-schema.json",
  "title": "PaginatedRuleSets",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/frase-io-rulesets-api-openapi.yml#/components/schemas/PaginatedRuleSets",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RuleSetSummary"
      }
    },
    "pagination": {
      "$ref": "#/$defs/Pagination"
    },
    "request_id": {
      "type": "string"
    }
  },
  "$defs": {
    "Pagination": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer"
        },
        "page_size": {
          "type": "integer"
        },
        "total": {
          "type": "integer"
        },
        "has_more": {
          "type": "boolean"
        }
      }
    },
    "RuleSetRuleSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "condition_type": {
          "type": "string"
        },
        "severity": {
          "type": "string"
        },
        "sort_order": {
          "type": "integer"
        }
      }
    },
    "RuleSetSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "is_system": {
          "type": "boolean"
        },
        "is_enabled": {
          "type": "boolean"
        },
        "rule_count": {
          "type": "integer"
        },
        "rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RuleSetRuleSummary"
          }
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}