What you get
- A DeveloperCredential or AgentCredential filled from a template
- Validation against the official JSON Schema (kept in-repo)
- Clear validation results (OK, warnings, or errors)
Prerequisites
-
CLI - Install the Beltic CLI:
-
JSON Schema validator (optional, for manual validation):
- AJV CLI:
npm install -g ajv-cli ajv-formats - or Python:
pip install jsonschema
- AJV CLI:
-
Spec repository (for templates):
1) Pick a template
Developer templates (examples/developer/v1/tests/):
- Individual minimal:
valid-individual-minimal.json - Individual complete:
valid-individual-complete.json - Org tier 1:
valid-organization-tier1.json - Org tier 2:
valid-organization-tier2-complete.json
examples/agent/v1/tests/):
- Valid capability mixes plus invalid variants for negative tests.
2) Copy and edit
legalName, entityType, credentialId, subjectDid,
dates, etc.). Use ISO 8601 timestamps and fresh UUIDs.
Or use the CLI to create a developer credential:
3) Validate
AJV:4) Sign and verify (CLI)
--skip-schema (not recommended outside debugging).
5) Verify in code (SDK)
beltic-spec/examples/* to mirror CLI behavior.