{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reglayer-ai/json-schema/reglayer-ai-purchase-request-schema.json",
  "title": "PurchaseRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reglayer-ai-openapi.json#/components/schemas/PurchaseRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "product",
    "email",
    "name",
    "company_name",
    "question",
    "decision_context",
    "product_context",
    "jurisdictions",
    "terms_accepted"
  ],
  "properties": {
    "product": {
      "const": "instant_brief"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "name": {
      "type": "string",
      "minLength": 1
    },
    "company_name": {
      "type": "string",
      "minLength": 1
    },
    "company_url": {
      "type": "string"
    },
    "question": {
      "type": "string",
      "minLength": 20,
      "maxLength": 2500
    },
    "decision_context": {
      "type": "string",
      "minLength": 20,
      "maxLength": 2500
    },
    "product_context": {
      "type": "string",
      "minLength": 20,
      "maxLength": 2500
    },
    "jurisdictions": {
      "type": "array",
      "minItems": 1,
      "maxItems": 3,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100
      }
    },
    "terms_accepted": {
      "const": true
    }
  }
}