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 sincef622ee1(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 sincec194bd4. npm test --workspace packages/cultnet-ts -> 54 pass npm run test:pack:ts -> passed Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
672235e8f3
commit
f94f5581b0
2 changed files with 4 additions and 2 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ import {
|
|||
|
||||
const identity: CultMeshBrowserIdentity = {
|
||||
verseId: "smoke",
|
||||
providerId: "smoke.provider",
|
||||
authorityRuntimeId: "smoke.authority",
|
||||
};
|
||||
const lease: CultMeshRawDocumentLeaseOptions = {
|
||||
schemaId: "smoke.document.v1",
|
||||
|
|
|
|||
Loading…
Reference in a new issue