UNPKG

fortify-schema

Version:

TypeScript interface-like schema validation system that's easier to use than Zod

62 lines (58 loc) 2.24 kB
'use strict'; var Docs = require('./components/AutoDocumentation/Docs.js'); var index = require('./components/ConditionalValidation/index.js'); var index$1 = require('./components/RealtimeValidation/index.js'); var SmartInference = require('./SmartInference.js'); var validationEngine = require('./mods/validation-engine.js'); var openapiConverter = require('./mods/openapi-converter.js'); var typescriptGenerator = require('./mods/typescript-generator.js'); /** * Fortify Schema Extensions - Advanced Features * * This module exports all advanced extensions that make Fortify Schema * a powerful schema validation library. * * Features real, functional implementations without placeholders. */ /** * Extensions Bundle * * All extensions in one convenient object for easy access */ const Extensions = { Smart: { fromSample: SmartInference.Smart.fromSample, fromJsonSchema: SmartInference.Smart.fromJsonSchema, fromType: SmartInference.Smart.fromType }, When: { field: index.When.field, custom: index.When.custom }, Live: { validator: index$1.Live.validator, stream: index$1.Live.stream }, Docs: { generate: Docs.Docs.generate, typescript: Docs.Docs.typescript, openapi: Docs.Docs.openapi }, // Advanced utilities for specialized use cases Utils: { ValidationEngine: validationEngine.ValidationEngine, OpenAPIConverter: openapiConverter.OpenAPIConverter, TypeScriptGenerator: typescriptGenerator.TypeScriptGenerator } }; /** * Quick access to most commonly used extensions */ const Quick = { // Smart inference shortcuts fromSample: SmartInference.Smart.fromSample, fromJsonSchema: SmartInference.Smart.fromJsonSchema, // Conditional validation shortcuts when: index.When.field, // Real-time validation shortcuts live: index$1.Live.validator, stream: index$1.Live.stream, // Documentation shortcuts docs: Docs.Docs.generate, typescript: Docs.Docs.typescript, openapi: Docs.Docs.openapi }; exports.Docs = Docs.Docs; exports.When = index.When; exports.Live = index$1.Live; exports.Smart = SmartInference.Smart; exports.Extensions = Extensions; exports.Quick = Quick; exports.default = Extensions; //# sourceMappingURL=index.js.map