{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canishop-ai/json-schema/canishop-ai-merchant-import-schema.json",
  "title": "MerchantImport",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/canishop-ai-api-openapi.json#/components/schemas/MerchantImport",
  "type": "object",
  "properties": {
    "merchants": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "description": {
            "default": "",
            "type": "string",
            "maxLength": 1500
          },
          "categories": {
            "default": [],
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          },
          "countryCodes": {
            "default": [],
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Z]{2}$"
            }
          },
          "address": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "sourceUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "domain": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        },
        "required": [
          "name",
          "domain"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "merchants"
  ],
  "additionalProperties": false
}