{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://smoa.dev/schemas/credential-payload-document.schema.json", "title": "Credential sync payload — ICAO / AAMVA / MIL-STD-129 (discriminated union)", "description": "Validates only the `payload` map inside CredentialSyncRequest — not the full request. `credentialType` lives on the request body; pick the matching branch (or validate against one schema after reading request.credentialType). oneOf may not auto-discriminate without extension keywords; prefer per-type validation in pipelines.", "oneOf": [ { "$ref": "credential-payload-icao9303_mrtd.schema.json" }, { "$ref": "credential-payload-aamva_dlid.schema.json" }, { "$ref": "credential-payload-mil_std_129.schema.json" }, { "$ref": "credential-payload-piv_pki.schema.json" }, { "$ref": "credential-payload-payment.schema.json" }, { "$ref": "credential-payload-nfc_access.schema.json" }, { "$ref": "credential-payload-mobile.schema.json" }, { "$ref": "credential-payload-agency_badge.schema.json" } ] }