{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fence/json-schema/fence-register-documents-request-schema.json",
  "title": "RegisterDocumentsRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fence-documents-api-openapi.yml#/components/schemas/RegisterDocumentsRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "documents"
  ],
  "properties": {
    "documents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DocumentInput"
      }
    }
  },
  "$defs": {
    "DocumentInput": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "document_category",
        "document_external_id",
        "file_name_with_ext"
      ],
      "properties": {
        "document_category": {
          "type": "string",
          "minLength": 1
        },
        "document_external_id": {
          "type": "string",
          "minLength": 1
        },
        "file_name_with_ext": {
          "type": "string",
          "pattern": "^.+\\.[^./]+$",
          "description": "File name including its extension."
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}