A framework for generating definitions with custom validators, version 2.1.2. It integrates with Joi to provide custom validation decorators for file system operations. The framework is part of a monorepo and depends on helpers-lib, script-engine-lib, and Joi. Release cadence is not specified. Key differentiators include built-in custom validators and seamless integration with the definition generation ecosystem.
npm install definition-generator-frameworkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This example shows how to import and use JoiCustomValidators to decorate Joi with file system validators.
Use named imports like { JoiCustomValidators } instead of default import.Replace validateConfig() calls with setupValidators().
Ensure decorate() is called at application startup, before Joi schemas are compiled.
Provide a 'fs' mock object with required methods (existsSync, readFileSync, etc.).
Use correct import: import { JoiCustomValidators } from 'definition-generator-framework';Upgrade to v2.1.0+ and use setupValidators instead, or downgrade to v1.x.
Ensure you import 'fs' correctly: import * as fs from 'fs'; then pass fs object.