Files
crosscode-platform/packages/contracts/schemas/hub-public-key-response.json
joshuaandClaude Opus 5.5 9e94c82502 Contracts 1.0.0: generated JSON Schema for every contract
- schemas/: JSON Schema (draft 2020-12) generated from the zod schemas by
  npm run build (scripts/json-schemas.cjs), exported as
  @crosscode/contracts/schemas/*
- Test: files match the zod schemas, every sample passes them (Ajv)
- Version 1.0.0, CHANGELOG and README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 14:30:37 +02:00

33 lines
731 B
JSON

{
"$id": "https://c-git.crosscode.co.za/joshua/crosscode-platform/raw/branch/main/packages/contracts/schemas/hub-public-key-response.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"protocolVersions": {
"type": "array",
"items": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"keyId": {
"type": "string"
},
"algorithm": {
"type": "string",
"const": "Ed25519"
},
"publicKey": {
"type": "string",
"pattern": "^-----BEGIN PUBLIC KEY-----.*"
}
},
"required": [
"protocolVersions",
"keyId",
"algorithm",
"publicKey"
]
}