{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wakatime/json-schema/wakatime-custom-rule-schema.json",
  "title": "CustomRule",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wakatime-custom-rules-api-openapi.yml#/components/schemas/CustomRule",
  "allOf": [
    {
      "$ref": "#/$defs/CustomRuleInput"
    },
    {
      "type": "object",
      "properties": {
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "modified_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  ],
  "$defs": {
    "CustomRuleInput": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": "string"
        },
        "if_match": {
          "type": "object",
          "additionalProperties": true
        },
        "then_set": {
          "type": "object",
          "additionalProperties": true
        }
      }
    }
  }
}