{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frase-io/json-schema/frase-io-rule-detail-schema.json",
  "title": "RuleDetail",
  "description": "Rule with additional detail fields including updated_at",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/frase-io-rules-api-openapi.yml#/components/schemas/RuleDetail",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "condition_type": {
      "type": "string",
      "enum": [
        "score_threshold",
        "term_compliance",
        "verify_chips",
        "word_count",
        "meta_required",
        "link_count",
        "section_required",
        "regex_pattern",
        "competitor_filter"
      ]
    },
    "config": {
      "type": "object",
      "description": "Rule configuration object, structure varies by condition_type"
    },
    "severity": {
      "type": "string",
      "enum": [
        "error",
        "warning",
        "info"
      ]
    },
    "fix_hint": {
      "type": [
        "string",
        "null"
      ]
    },
    "is_system": {
      "type": "boolean"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}