5 Repos
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 ist eine Bibliothek zur Manipulation unveränderlicher Daten und ein Objekt-Dienstprogramm, das zum Erstellen modifizierter Kopien von Objekten und Arrays verwendet wird. Sie fungiert als Befehls-basierter State-Manager und funktionaler Datentransformator, der sicherstellt, dass ursprüngliche Quelldaten während Aktualisierungen unverändert bleiben. Die Bibliothek zeichnet sich durch die Verwendung eines deklarativen Satzes von Mutationsbefehlen und Deskriptoren zur Spezifizierung von Änderungen aus. Sie bewahrt die Referenzgleichheit, indem sie die ursprüngliche Objektreferenz zurückgibt, wenn während des Mutationsprozesses keine tatsächlichen Änderungen auftreten. Sie bietet Funktionen für Deep-Cloning verschachtelter Strukturen und die Durchführung komplexer Zustandsmutationen an Objekten, Arrays, Maps und Sets. Das System unterstützt das Zusammenführen unveränderlicher Objekte und die Anwendung benutzerdefinierter Transformationslogik durch eine erweiterbare Mutations-Engine.
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.