From f94f5581b078f79a532338f642008d66c6a3f1ff Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 10 Sep 2026 13:35:15 +0200 Subject: [PATCH] Let the verse catalog schema say what the reference emits The C# reference publishes authorityRoutes with certificate: null for loopback routes, and its own verifier treats null as "no certificate" in local development. The TypeScript JSON schema only allowed the object, so the browser client rejected every catalog the getting-started provider served: "certificate: must be object", Odin could not resolve the Verse, and the real browser/C# checkpoint has failed since f622ee1 (2026-08-18), behind the sample failure that hid it. TypeScript consumers already guard route.certificate; the schema now accepts null. The package-closure smoke also still spelled the browser identity with providerId; it is authorityRuntimeId since c194bd4. npm test --workspace packages/cultnet-ts -> 54 pass npm run test:pack:ts -> passed Co-Authored-By: Claude Fable 5.1 --- .../contracts/cultmesh.verse-catalog-response.schema.json | 4 +++- scripts/test-typescript-package-closure.mjs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/cultnet-ts/contracts/cultmesh.verse-catalog-response.schema.json b/packages/cultnet-ts/contracts/cultmesh.verse-catalog-response.schema.json index f23ef5f7..464908ad 100644 --- a/packages/cultnet-ts/contracts/cultmesh.verse-catalog-response.schema.json +++ b/packages/cultnet-ts/contracts/cultmesh.verse-catalog-response.schema.json @@ -28,7 +28,9 @@ "protocolIds": { "type": "array", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true }, "priority": { "type": "integer", "minimum": 0 }, "generation": { "type": "string", "minLength": 1 }, - "certificate": { "$ref": "#/$defs/routeCertificate" } + "certificate": { + "anyOf": [{ "$ref": "#/$defs/routeCertificate" }, { "type": "null" }] + } } }, "routeCertificate": { diff --git a/scripts/test-typescript-package-closure.mjs b/scripts/test-typescript-package-closure.mjs index 0ed79e59..5f00aa47 100644 --- a/scripts/test-typescript-package-closure.mjs +++ b/scripts/test-typescript-package-closure.mjs @@ -131,7 +131,7 @@ import { const identity: CultMeshBrowserIdentity = { verseId: "smoke", - providerId: "smoke.provider", + authorityRuntimeId: "smoke.authority", }; const lease: CultMeshRawDocumentLeaseOptions = { schemaId: "smoke.document.v1",