{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reglayer-ai/json-schema/reglayer-ai-check-purchase-request-schema.json",
  "title": "CheckPurchaseRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reglayer-ai-openapi.json#/components/schemas/CheckPurchaseRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "product",
    "email",
    "name",
    "materials",
    "terms_accepted"
  ],
  "properties": {
    "product": {
      "const": "instant_check"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "name": {
      "type": "string",
      "minLength": 1
    },
    "company_name": {
      "type": "string"
    },
    "context_note": {
      "type": "string",
      "maxLength": 2500
    },
    "terms_accepted": {
      "const": true
    },
    "materials": {
      "type": "array",
      "minItems": 1,
      "maxItems": 2,
      "items": {
        "type": "object",
        "required": [
          "filename",
          "content"
        ],
        "additionalProperties": false,
        "properties": {
          "filename": {
            "type": "string",
            "minLength": 1,
            "maxLength": 180
          },
          "content": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240000
          }
        }
      }
    }
  }
}