JSON Schema bridge for uniforms, a React library for generating forms from schemas. Current stable version is 4.0.0. This package allows you to use JSON Schema as the schema definition for uniforms forms, translating JSON Schema constraints into form fields and validation. It is part of the uniforms ecosystem, which also supports other schema formats like GraphQL, SimpleSchema, and Zod. The bridge requires uniforms 4.0.0 as a peer dependency and is written in TypeScript with type definitions included.
npm install uniforms-bridge-json-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a form from a JSON Schema using the JSONSchemaBridge and uniforms' AutoForm component.
Ensure you have uniforms@4.0.0 installed as a dependency.
Use createSchemaBridge(schema, JSONSchemaBridge) instead of new JSONSchemaBridge(schema).
Provide a custom validation function to the bridge or use a library like ajv to validate before submission.
Validate your JSON Schema against the supported draft before passing it to the bridge.
Install uniforms@4.0.0: npm install uniforms@4.0.0
Import createSchemaBridge from 'uniforms' and call it with your schema and JSONSchemaBridge: createSchemaBridge(schema, JSONSchemaBridge).
Install the package: npm install uniforms-bridge-json-schema