{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/citedindex-com/json-schema/citedindex-com-lead-input-schema.json",
  "title": "LeadInput",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citedindex-com-openapi.yml#/components/schemas/LeadInput",
  "type": "object",
  "required": [
    "name",
    "email",
    "message",
    "consent"
  ],
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 120
    },
    "email": {
      "type": "string",
      "description": "A permanent (non-disposable) email."
    },
    "message": {
      "type": "string",
      "minLength": 20,
      "maxLength": 4000,
      "description": "The enquiry — real demand, at least 20 chars."
    },
    "consent": {
      "description": "Must be truthy — the sender agreed their details go to the provider(s).",
      "oneOf": [
        {
          "type": "boolean"
        },
        {
          "type": "string"
        }
      ]
    },
    "listingSlug": {
      "type": "string",
      "description": "Target listing slug (this OR categorySlug is required)."
    },
    "categorySlug": {
      "type": "string",
      "description": "Target category slug (this OR listingSlug is required)."
    },
    "company": {
      "type": "string"
    },
    "source": {
      "type": "string"
    }
  }
}