{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/packetrove-com/json-schema/packetrove-com-certificate-bundle-request-schema.json",
  "title": "CertificateBundleRequest",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/packetrove-com-openapi.json#/components/schemas/CertificateBundleRequest",
  "type": "object",
  "properties": {
    "pem": {
      "type": "string",
      "maxLength": 49152,
      "description": "One or more PEM CERTIFICATE blocks, with only whitespace between blocks. At most 48 KiB of UTF-8 and 16 blocks. Private keys and other block types are rejected."
    },
    "hostname": {
      "type": "string",
      "maxLength": 255,
      "description": "Optional ASCII DNS hostname, including pre-converted IDNA A-labels. No URL, port, IP address, or wildcard. Blank skips identity checking."
    },
    "leafIndex": {
      "type": "integer",
      "minimum": 0,
      "maximum": 15,
      "description": "Zero-based original position of a non-CA certificate. Required to resolve multiple possible leaves for hostname checking."
    }
  },
  "required": [
    "pem"
  ],
  "additionalProperties": false
}