{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chemaxon/json-schema/chemaxon-bulk-insert-request-schema.json",
  "title": "BulkInsertRequest",
  "description": "A JSON object containing field mappings, system switchers and registration properties",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chemaxon-bulk-registration-api-openapi.yml#/components/schemas/BulkInsertRequest",
  "type": "object",
  "properties": {
    "source": {
      "type": "string"
    },
    "library": {
      "type": "string"
    },
    "fieldMappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FieldMapping"
      }
    },
    "settings": {
      "$ref": "#/$defs/FileSettings"
    },
    "sysSwitchers": {
      "$ref": "#/$defs/SystemSwitchersWrapper"
    },
    "preregistration": {
      "type": "boolean"
    },
    "strCheckerSwitchers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StructureCheckerSwitcher"
      }
    },
    "entityType": {
      "type": "string",
      "enum": [
        "SINGLE",
        "PEPTIDE"
      ]
    }
  },
  "$defs": {
    "FieldId": {
      "type": "object",
      "properties": {
        "fieldName": {
          "type": "string"
        },
        "additional": {
          "type": "boolean",
          "description": "True in case of additional data field, false otherwise"
        }
      },
      "required": [
        "additional",
        "fieldName"
      ]
    },
    "FieldMapping": {
      "type": "object",
      "properties": {
        "externalFieldName": {
          "type": "string"
        },
        "fieldId": {
          "$ref": "#/$defs/FieldId"
        },
        "defaultValue": {
          "type": "string"
        }
      }
    },
    "FileSettings": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "AUTO",
            "MOLECULE",
            "CSV"
          ]
        },
        "rowDelimiter": {
          "type": "string"
        },
        "fieldDelimiter": {
          "type": "string"
        },
        "multiValueDelimiter": {
          "type": "string"
        },
        "structureField": {
          "type": "string"
        },
        "containsHeader": {
          "type": "boolean"
        },
        "processIdBasedFields": {
          "type": "boolean"
        }
      }
    },
    "FixerItem": {
      "type": "object",
      "properties": {
        "fixerClassName": {
          "type": "string"
        },
        "fixerName": {
          "type": "string"
        }
      }
    },
    "StructureCheckerItem": {
      "type": "object",
      "properties": {
        "structureCheckerId": {
          "type": "string"
        },
        "structureCheckerName": {
          "type": "string"
        }
      }
    },
    "StructureCheckerSwitcher": {
      "type": "object",
      "properties": {
        "structureChecker": {
          "$ref": "#/$defs/StructureCheckerItem"
        },
        "fixMode": {
          "type": "string",
          "enum": [
            "ASK",
            "FIX",
            "DO_NOT_FIX"
          ]
        },
        "fixer": {
          "$ref": "#/$defs/FixerItem"
        },
        "fixerOptions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FixerItem"
          }
        }
      }
    },
    "SystemSwitchersWrapper": {
      "type": "object",
      "properties": {
        "sysSwitchers": {
          "type": "object",
          "additionalProperties": {
            "type": "boolean"
          }
        }
      }
    }
  }
}