@sprigcode/schema
v0.1.1
Published
JSON schema for Sprigcode transaction documents.
Downloads
205
Readme
@sprigcode/schema
JSON schema for the Sprigcode Transaction Format.
What it provides
@sprigcode/schema exports the schema and a small validation helper for the
transaction document shape used by Sprigcode.
Install
npm install @sprigcode/schemaUsage
import { sprigcodeSchema, validateTransactionShape } from "@sprigcode/schema";
const result = validateTransactionShape({
version: "0.1",
language: "typescript",
ops: []
});
console.log(result.valid);
console.log(sprigcodeSchema.$schema);Repository
https://github.com/eat-apples/sprigcode
License
Apache-2.0
