Registry / productivity / signature-page-schema

signature-page-schema

JSON →
library2.0.0jsnpmunverified

JSON Schema for describing signature pages in legal documents, version 2.0.0. It defines a standard structure for representing signing parties, their roles, and entities involved, including intermediary entities and signing capacities. The schema is used in the CommonForm ecosystem for generating and validating signature blocks. Differentiators include support for multiple entities in a chain (e.g., LLCs, LPs), same-page flagging, and structured information fields like address and email. The schema is part of a broader set of legal document schemas. Release cadence is low; breaking changes are rare and versioned.

npm install signature-page-schema
INSTALL
IMPORT
SIG · SIGNATURE-PAGE-SCH
S
signature-page-schema
productivityjavascriptv2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

signaturePageSchema
import signaturePageSchema from 'signature-page-schema'
const signaturePageSchema = require('signature-page-schema')
ESM-only since v2; CommonJS require will fail.
validate
import Ajv from 'ajv'; const ajv = new Ajv(); const validate = ajv.compile(signaturePageSchema);
signaturePageSchema (type)
type SignaturePage = import('signature-page-schema').SignaturePage;

Validate a signature page array against the schema using Ajv.

import Ajv from 'ajv'; import signaturePageSchema from 'signature-page-schema'; const ajv = new Ajv(); const validate = ajv.compile(signaturePageSchema); const signaturePages = [ { term: 'Contractor', header: 'The parties enter this agreement on the first date written above.', information: ['date'], name: 'Jane Doe' }, { term: 'Company', samePage: true, information: ['address', 'email'], entities: [ { name: 'B, LLC', form: 'corporation', jurisdiction: 'Delaware', by: 'Manager' }, { name: 'A, LP', form: 'limited partnership', jurisdiction: 'Delaware', by: 'Limited Partner' }, { name: 'NewCo, Inc', form: 'corporation', jurisdiction: 'Delaware', by: 'Director' } ], name: 'Jane Doe' } ]; const valid = validate(signaturePages); if (!valid) console.log(validate.errors);
Debug
Known issues
breakingVersion 2.0.0 changed from CommonJS to ESM only.
fix
Use import instead of require(), or use dynamic import().
affects: >=2.0.0
breakingSchema format changed from JSON Schema draft-04 to draft-07.
fix
Update validator to support draft-07 (e.g., Ajv v6+).
affects: >=2.0.0
deprecatedThe 'signatory' property is deprecated in favor of 'name'.
fix
Rename 'signatory' to 'name'.
affects: >=1.0.0
Errors
Common errors & fixes
Invalid configuration: entities must be an array of objects
Provided entities as a simple array of strings instead of objects
fix
Ensure each entity is an object with required properties: 'name', 'form', 'jurisdiction', 'by'.
ValidationError: data must have required property 'term'
Missing 'term' field in a signature page object
fix
Add a 'term' string property to each signature page object.
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
28
OpenAI (training)
1
Resources
signature-page-schema — npm install signature-page-schema · libregistry