@open-form/schemas
v0.1.3
Published
JSON Schema definitions for OpenForm framework artifacts, blocks, and primitives
Maintainers
Readme
OpenForm is documents as code. It lets developers and AI agents define, validate, and render business documents using typed, composable schemas. This eliminates template drift, broken mappings, and brittle glue code — while giving AI systems a reliable document layer they can safely read, reason over, and generate against in production workflows.
Package overview
JSON Schema definitions for OpenForm artifacts.
Installation
npm install @open-form/schemasUsage
import jsonSchema from "@open-form/schemas/schema.json";
// Use with any JSON Schema validator
import Ajv from "ajv";
const ajv = new Ajv();
const validate = ajv.compile(jsonSchema);
const isValid = validate(myOpenFormDocument);
if (!isValid) {
console.log(validate.errors);
}Changelog
View the Changelog for updates.
Related packages
@open-form/sdk- OpenForm framework SDK
Contributing
We're open to all community contributions! If you'd like to contribute in any way, please read our contribution guidelines and code of conduct.
License
This project is licensed under the MIT license.
See LICENSE for more information.
Acknowledgments
Built with these excellent libraries:
- TypeBox - JSON Schema Type Builder
