{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cldbattery.com/passport/schema.json",
  "title": "CLD Battery EU Digital Battery Passport (DIN DKE SPEC 99100 v2.0 / Catena-X v6.0.0 / Regulation (EU) 2023/1542)",
  "description": "Machine-readable model-level EU Digital Battery Passport JSON-LD schema for CLD Battery industrial LiFePO4 traction batteries (> 2 kWh).",
  "type": "object",
  "required": [
    "@context",
    "@id",
    "@type",
    "schemaVersion",
    "semanticId",
    "catenaXAspectMapping",
    "verifiableCredentialTemplate",
    "regulation",
    "standard",
    "mandatoryDate",
    "passportScope",
    "uniqueModelId",
    "sku",
    "slug",
    "batteryCategory",
    "canonicalUrl",
    "zhCanonicalUrl",
    "jsonLdUrl",
    "qrSvgUrl",
    "gs1DigitalLinkTemplate",
    "readiness",
    "generalInformation",
    "complianceAndLabels",
    "carbonFootprint",
    "supplyChainDueDiligence",
    "materialsAndComposition",
    "circularityAndSafety",
    "performanceAndDurability",
    "sections"
  ],
  "properties": {
    "@context": {
      "type": [
        "object",
        "string",
        "array"
      ]
    },
    "@id": {
      "type": "string",
      "format": "uri"
    },
    "@type": {
      "const": "BatteryPassport"
    },
    "schemaVersion": {
      "type": "string"
    },
    "semanticId": {
      "const": "urn:samm:io.catenax.battery.battery_pass:6.0.0#BatteryPass"
    },
    "catenaXAspectMapping": {
      "type": "object",
      "required": [
        "semanticId",
        "aspectModelVersion",
        "properties"
      ],
      "properties": {
        "semanticId": {
          "const": "urn:samm:io.catenax.battery.battery_pass:6.0.0#BatteryPass"
        },
        "aspectModelVersion": {
          "const": "6.0.0"
        },
        "properties": {
          "type": "object",
          "required": [
            "generalInformation",
            "complianceAndLabels",
            "carbonFootprint",
            "supplyChainDueDiligence",
            "materialsAndComposition",
            "circularityAndSafety",
            "performanceAndDurability"
          ],
          "properties": {
            "generalInformation": {
              "const": "generalProductInformation"
            },
            "complianceAndLabels": {
              "const": "conformityAndLabels"
            },
            "carbonFootprint": {
              "const": "batteryCycleLifeAndCarbonFootprint"
            },
            "supplyChainDueDiligence": {
              "const": "supplyChainDueDiligence"
            },
            "materialsAndComposition": {
              "const": "materialComposition"
            },
            "circularityAndSafety": {
              "const": "circularity"
            },
            "performanceAndDurability": {
              "const": "electrochemicalProperties"
            }
          }
        }
      }
    },
    "verifiableCredentialTemplate": {
      "type": "object",
      "required": [
        "@context",
        "type",
        "issuer",
        "credentialSubject",
        "credentialStatus"
      ],
      "properties": {
        "@context": {
          "type": "array",
          "minItems": 2
        },
        "id": {
          "type": "string"
        },
        "type": {
          "type": "array",
          "minItems": 2,
          "contains": {
            "const": "EU20231542BatteryPassportCredential"
          }
        },
        "issuer": {
          "type": "object",
          "required": [
            "id",
            "name"
          ],
          "properties": {
            "id": {
              "const": "did:web:cldbattery.com"
            },
            "name": {
              "const": "Guangxi Yunxinchen New Energy Technology Co., Ltd."
            }
          }
        },
        "credentialSubject": {
          "type": "object",
          "required": [
            "id",
            "sku",
            "semanticId"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "sku": {
              "type": "string",
              "pattern": "^CLD[0-9]{5}$"
            },
            "semanticId": {
              "const": "urn:samm:io.catenax.battery.battery_pass:6.0.0#BatteryPass"
            }
          }
        },
        "credentialStatus": {
          "type": "object",
          "required": [
            "status",
            "note"
          ],
          "properties": {
            "status": {
              "const": "unsigned_model_template"
            },
            "note": {
              "type": "string"
            }
          }
        }
      }
    },
    "regulation": {
      "const": "Regulation (EU) 2023/1542"
    },
    "standard": {
      "const": "DIN DKE SPEC 99100"
    },
    "mandatoryDate": {
      "const": "2027-02-18"
    },
    "passportScope": {
      "enum": [
        "model_level_template",
        "batch_instance",
        "item_instance"
      ]
    },
    "uniqueModelId": {
      "type": "string",
      "pattern": "^urn:cld:eu-dpp:model:CLD[0-9]{5}$"
    },
    "sku": {
      "type": "string",
      "pattern": "^CLD[0-9]{5}$"
    },
    "slug": {
      "type": "string",
      "pattern": "^cld[0-9]{5}$"
    },
    "batteryCategory": {
      "type": "string"
    },
    "canonicalUrl": {
      "type": "string",
      "format": "uri"
    },
    "zhCanonicalUrl": {
      "type": "string",
      "format": "uri"
    },
    "jsonLdUrl": {
      "type": "string",
      "format": "uri"
    },
    "qrSvgUrl": {
      "type": "string",
      "format": "uri"
    },
    "gs1DigitalLinkTemplate": {
      "type": "string"
    },
    "accessLayer": {
      "enum": [
        "public",
        "legitimate_interest",
        "authorities"
      ]
    },
    "restrictedAccessProcedure": {
      "type": "object"
    },
    "readiness": {
      "type": "object",
      "required": [
        "verified",
        "lotSpecific",
        "pending",
        "total"
      ],
      "properties": {
        "verified": {
          "type": "integer",
          "minimum": 0
        },
        "lotSpecific": {
          "type": "integer",
          "minimum": 0
        },
        "pending": {
          "type": "integer",
          "minimum": 0
        },
        "total": {
          "type": "integer",
          "minimum": 1
        }
      }
    },
    "generalInformation": {
      "type": "object",
      "required": [
        "uniqueModelId",
        "sku",
        "manufacturer",
        "manufacturerPostalAddress",
        "manufacturingFacility"
      ],
      "properties": {
        "uniqueModelId": {
          "type": "string"
        },
        "sku": {
          "type": "string"
        },
        "manufacturer": {
          "type": "object"
        },
        "manufacturerPostalAddress": {
          "type": "object",
          "required": [
            "en",
            "zh"
          ],
          "properties": {
            "en": {
              "type": "string"
            },
            "zh": {
              "type": "string"
            }
          }
        },
        "manufacturingFacility": {
          "type": "object",
          "required": [
            "en",
            "zh"
          ],
          "properties": {
            "en": {
              "type": "string"
            },
            "zh": {
              "type": "string"
            }
          }
        }
      }
    },
    "complianceAndLabels": {
      "type": "object"
    },
    "carbonFootprint": {
      "type": "object"
    },
    "supplyChainDueDiligence": {
      "type": "object",
      "required": [
        "cooperatingCellPartners",
        "coveredRawMaterialsInChemistry",
        "batchTraceabilityGates"
      ],
      "properties": {
        "cooperatingCellPartners": {
          "type": "array",
          "minItems": 6,
          "items": {
            "type": "string"
          }
        }
      }
    },
    "materialsAndComposition": {
      "type": "object",
      "required": [
        "chemistryCode",
        "seriesCellCount",
        "seriesCellTopology",
        "cooperatingCellPartners"
      ],
      "properties": {
        "chemistryCode": {
          "const": "LFP"
        },
        "seriesCellCount": {
          "type": "integer",
          "minimum": 8
        },
        "seriesCellTopology": {
          "type": "string"
        },
        "cooperatingCellPartners": {
          "type": "array",
          "minItems": 6,
          "items": {
            "type": "string"
          }
        }
      }
    },
    "circularityAndSafety": {
      "type": "object"
    },
    "performanceAndDurability": {
      "type": "object",
      "required": [
        "voltageClassV",
        "nominalVoltageV",
        "ratedCapacityAh",
        "nominalEnergyKwh",
        "operatingTemperatureRangeC",
        "operatingTemperatureRange",
        "seriesCellCount",
        "seriesCellTopology",
        "cellGradingConsistency",
        "bmsAndIotCapabilities"
      ],
      "properties": {
        "voltageClassV": {
          "type": "number"
        },
        "nominalVoltageV": {
          "type": "number"
        },
        "ratedCapacityAh": {
          "type": "number"
        },
        "nominalEnergyKwh": {
          "type": "number"
        },
        "operatingTemperatureRangeC": {
          "type": "object",
          "required": [
            "min",
            "max"
          ],
          "properties": {
            "min": {
              "type": "number"
            },
            "max": {
              "type": "number"
            }
          }
        },
        "operatingTemperatureRange": {
          "type": "string"
        },
        "seriesCellCount": {
          "type": "integer",
          "minimum": 8
        },
        "seriesCellTopology": {
          "type": "string"
        },
        "cellGradingConsistency": {
          "type": "object"
        },
        "bmsAndIotCapabilities": {
          "type": "object"
        }
      }
    },
    "sections": {
      "type": "array",
      "minItems": 7,
      "maxItems": 7,
      "items": {
        "type": "object",
        "required": [
          "id",
          "code",
          "catenaXProperty",
          "regulationRef",
          "accessTier",
          "title",
          "summary",
          "fields"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "catenaXProperty": {
            "enum": [
              "generalProductInformation",
              "conformityAndLabels",
              "batteryCycleLifeAndCarbonFootprint",
              "supplyChainDueDiligence",
              "materialComposition",
              "circularity",
              "electrochemicalProperties"
            ]
          },
          "regulationRef": {
            "type": "string"
          },
          "accessTier": {
            "enum": [
              "public",
              "legitimate_interest",
              "authorities"
            ]
          },
          "title": {
            "type": "object",
            "required": [
              "en",
              "zh"
            ],
            "properties": {
              "en": {
                "type": "string"
              },
              "zh": {
                "type": "string"
              }
            }
          },
          "summary": {
            "type": "object",
            "required": [
              "en",
              "zh"
            ],
            "properties": {
              "en": {
                "type": "string"
              },
              "zh": {
                "type": "string"
              }
            }
          },
          "fields": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "required": [
                "fieldName",
                "regulationRef",
                "accessTier",
                "label",
                "value",
                "status"
              ],
              "properties": {
                "fieldName": {
                  "type": "string"
                },
                "regulationRef": {
                  "type": "string"
                },
                "accessTier": {
                  "enum": [
                    "public",
                    "legitimate_interest",
                    "authorities"
                  ]
                },
                "label": {
                  "type": "object",
                  "required": [
                    "en",
                    "zh"
                  ],
                  "properties": {
                    "en": {
                      "type": "string"
                    },
                    "zh": {
                      "type": "string"
                    }
                  }
                },
                "value": {
                  "type": "object",
                  "required": [
                    "en",
                    "zh"
                  ],
                  "properties": {
                    "en": {
                      "type": "string"
                    },
                    "zh": {
                      "type": "string"
                    }
                  }
                },
                "status": {
                  "enum": [
                    "verified",
                    "lot_specific",
                    "pending_verification",
                    "restricted_tier_access"
                  ]
                }
              }
            }
          }
        }
      }
    }
  }
}
