{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hubject/main/json-schema/hubject-signed-contract-data-request-schema.json",
  "title": "SignedContractData",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hubject-opcp-ccp-openapi.json#/components/schemas/SignedContractDataRequest",
  "type": "object",
  "minProperties": 4,
  "properties": {
    "xsdMsgDefNamespace": {
      "type": "string",
      "description": "ISO Version"
    },
    "emaid": {
      "type": "string",
      "pattern": "^[A-Za-z]{2}[-]?\\w{3}[-]?\\w{9}[-]?(\\w{1})?$",
      "description": "contract identifier of contract certificate"
    },
    "pcid": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9]{17,18}$",
      "description": "PCID of vehicle certificate"
    },
    "signedContractDataXML": {
      "description": "XML in base64 encoding, as generated by the Certificate Provisioning Service.",
      "type": "string"
    },
    "metadata": {
      "type": "string",
      "description": "open for future application"
    },
    "cpsV2GRootCertificateFingerprint": {
      "type": "string",
      "description": "cpsV2GRootCertificateFingerprint",
      "pattern": "^[0-9a-fA-F]{8}\\-([0-9a-fA-F]{4}\\-){3}[0-9a-fA-F]{12}$",
      "x-stoplight": {
        "id": "qs5345a7g2f87"
      }
    }
  },
  "required": [
    "xsdMsgDefNamespace",
    "emaid",
    "pcid",
    "signedContractDataXML"
  ]
}