{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/signicat/main/json-schema/signicat-merchant-sign-request-schema.json",
  "title": "MerchantSignRequest",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/signicat-sign-openapi.yml#/components/schemas/MerchantSignRequest",
  "type": "object",
  "required": [
    "vendor",
    "toBeSignedDocuments"
  ],
  "properties": {
    "vendor": {
      "$ref": "#/$defs/VendorEnum"
    },
    "toBeSignedDocuments": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "items": {
        "$ref": "#/$defs/ToBeSignedDocument"
      }
    }
  },
  "$defs": {
    "ToBeSignedDocument": {
      "type": "object",
      "required": [
        "documentId",
        "mimetype",
        "format",
        "description"
      ],
      "properties": {
        "documentId": {
          "type": "string",
          "format": "uuid"
        },
        "mimetype": {
          "type": "string",
          "maxLength": 50
        },
        "format": {
          "type": "string",
          "enum": [
            "PADES",
            "SDO"
          ]
        },
        "description": {
          "type": "string",
          "maxLength": 255
        }
      }
    },
    "VendorEnum": {
      "type": "string",
      "enum": [
        "NBID"
      ]
    }
  }
}