{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usewrit-app/json-schema/usewrit-app-selector-create-schema.json",
  "title": "SelectorCreate",
  "description": "Create body. The monitor id comes from the path. `enabled` accepts a boolean or 0/1 integer; `visual_region` accepts an object or a JSON string; `priority` also accepts a numeric string.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usewrit-app-selectors-api-openapi.yml#/components/schemas/SelectorCreate",
  "type": "object",
  "required": [
    "selector"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Defaults to the selector string when empty."
    },
    "selector": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "enabled": {
      "type": [
        "boolean",
        "integer",
        "null"
      ]
    },
    "content_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "visual_region": {
      "description": "Region object (or JSON string)."
    },
    "ignore_regex": {
      "type": [
        "string",
        "null"
      ]
    },
    "priority": {
      "type": [
        "integer",
        "string",
        "null"
      ]
    }
  }
}