- Add Gitea Actions workflow; point README to gitea.d-bis.org/Sankofa_Phoenix/SMOA - Expand .gitignore for Spring H2 data, secrets, Kotlin .kotlin/, tooling - Track docs/api/generated ReDoc bundle; refresh api docs README - Android: network/auth/sync, UI shell, tests; backend credentials/integrity APIs - Docs, scripts (generate-api-docs), modules and core updates Made-with: Cursor
17 lines
1.1 KiB
JSON
17 lines
1.1 KiB
JSON
{
|
|
"$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" }
|
|
]
|
|
}
|