{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usewrit-app/json-schema/usewrit-app-extractor-create-schema.json",
  "title": "ExtractorCreate",
  "description": "Create body. `enabled`/`is_array` accept booleans or 0/1 integers; `config` accepts an object or a JSON string.",
  "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/ExtractorCreate",
  "type": "object",
  "required": [
    "target_selector_id",
    "output_name"
  ],
  "properties": {
    "target_selector_id": {
      "type": "integer",
      "format": "int64"
    },
    "name": {
      "type": "string",
      "description": "Defaults to `output_name` when empty."
    },
    "output_name": {
      "type": "string"
    },
    "enabled": {
      "type": [
        "boolean",
        "integer",
        "null"
      ]
    },
    "extract_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "config": {
      "description": "Extractor config object (or JSON string)."
    },
    "is_array": {
      "type": [
        "boolean",
        "integer",
        "null"
      ]
    },
    "default_value": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}