@syntropysoft/praetorian
Version:
Praetorian CLI – A universal multi-environment configuration validator for DevSecOps teams. Validate, compare, and secure YAML/ENV files with ease.
24 lines • 845 B
TypeScript
/**
* Format Validator - Functional Programming
*
* Single Responsibility: Validate string formats only
* Pure functions, no state, no side effects
*/
import { JsonSchema, SchemaValidationError } from '../../shared/types';
/**
* Pure function to validate string format
*/
export declare const validateFormat: (value: any, schema: JsonSchema, path: string) => SchemaValidationError[];
/**
* Pure function to validate string pattern
*/
export declare const validatePattern: (value: any, schema: JsonSchema, path: string) => SchemaValidationError[];
/**
* Pure function to check if value is string
*/
export declare const isStringValue: (value: any) => boolean;
/**
* Pure function to get format validator
*/
export declare const getFormatValidator: (format: string) => RegExp | undefined;
//# sourceMappingURL=FormatValidator.d.ts.map