UNPKG

@syntropysoft/praetorian

Version:

Praetorian CLI – A universal multi-environment configuration validator for DevSecOps teams. Validate, compare, and secure YAML/ENV files with ease.

28 lines 957 B
/** * Range Validator - Functional Programming * * Single Responsibility: Validate numeric and string ranges only * Pure functions, no state, no side effects */ import { JsonSchema, SchemaValidationError } from '../../shared/types'; /** * Pure function to validate string length */ export declare const validateStringLength: (value: any, schema: JsonSchema, path: string) => SchemaValidationError[]; /** * Pure function to validate number range */ export declare const validateNumberRange: (value: any, schema: JsonSchema, path: string) => SchemaValidationError[]; /** * Pure function to check if value is number */ export declare const isNumber: (value: any) => boolean; /** * Pure function to check if value is string */ export declare const isStringValueRange: (value: any) => boolean; /** * Pure function to get string length */ export declare const getStringLength: (value: string) => number; //# sourceMappingURL=RangeValidator.d.ts.map