{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usewrit-app/json-schema/usewrit-app-extractor-schema.json",
  "title": "Extractor",
  "description": "One field extractor (`store::selector_extractors::SelectorExtractor`).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usewrit-app-extractors-api-openapi.yml#/components/schemas/Extractor",
  "type": "object",
  "required": [
    "id",
    "target_selector_id",
    "name",
    "output_name",
    "enabled",
    "extract_type",
    "is_array"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "target_selector_id": {
      "type": "integer",
      "format": "int64"
    },
    "name": {
      "type": "string"
    },
    "output_name": {
      "type": "string"
    },
    "enabled": {
      "type": "integer",
      "description": "0/1 integer flag."
    },
    "extract_type": {
      "type": "string",
      "description": "One of the extraction engine types (e.g. `text`, `regex`, `css`, `number`, `json`)."
    },
    "config": {
      "type": [
        "string",
        "null"
      ],
      "description": "JSON-TEXT extractor config."
    },
    "is_array": {
      "type": "integer",
      "description": "0/1 integer flag."
    },
    "default_value": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}