5 个仓库
Registries that map string identifiers to custom validation functions for runtime lookup.
Distinct from Custom Validation Functions: Distinct from custom functions by focusing on the registry mechanism (the map) rather than the execution of the logic.
Explore 5 awesome GitHub repositories matching software engineering & architecture · Function Registries. Refine with filters or upvote what's useful.
This is a Go struct validation library used to maintain data integrity by enforcing constraints on fields, slices, and maps. It functions as a schema validation tool and data integrity validator, ensuring that complex nested structures adhere to predefined rules. The library utilizes struct tags to configure validation logic at runtime and supports a custom function registry for extending validation rules. It is distinguished by its ability to perform cross-field dependency evaluation, allowing the comparison of values between different fields within the same data structure to ensure logical
Maintains a registry where custom validator functions are mapped to string identifiers for dynamic lookup during evaluation.
Go Package of validators and sanitizers for strings, numerics, slices and structs
Maintains a global map of named validation functions that can be registered and invoked by tag references.
immutability-helper 是一个不可变数据操作库和对象实用工具,用于创建对象和数组的修改副本。它作为一个基于命令的状态管理器和函数式数据转换器,确保原始源数据在更新过程中保持不变。 该库通过使用一组声明式的变异命令和描述符来指定更改,从而脱颖而出。如果在变异过程中没有发生实际更改,它会返回原始对象引用,从而保持引用相等性。 它提供了对嵌套结构进行深度克隆以及对对象、数组、Map 和 Set 执行复杂状态变异的功能。该系统支持通过可插拔的变异引擎合并不可变对象并应用自定义转换逻辑。
Uses a lookup table to map identifiers to user-defined functions for specialized data transformations.
ow is a type-safe schema validation library for TypeScript that verifies data integrity at runtime. It functions as a runtime validation framework and type guard utility, ensuring that JavaScript values match expected types and schemas before they are processed. The library synchronizes runtime data checks with static TypeScript type definitions, allowing users to extract type definitions directly from validation predicates. This integration enables type narrowing, where a successful validation result refines the variable type for safer usage in the code. The framework uses a chainable API t
Provides a registry mechanism to map identifiers to reusable standalone validation functions.
This project is a data validation framework for the Go programming language that enforces integrity by applying declarative constraints to struct fields. It utilizes reflection to inspect data structures at runtime, mapping field-level requirements defined in struct tags to specific validation logic. The library distinguishes itself through its ability to handle complex object graphs by recursively traversing nested structures and slices. It supports context-aware validation, allowing developers to switch between different rule sets for the same data structure based on application state or sp
Maintains a central lookup table of validation functions that allows developers to register and invoke custom business rules.