Go Package of validators and sanitizers for strings, numerics, slices and structs
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
This library is a declarative validation framework for Rust that enforces data integrity and business rules on structured data models. It utilizes procedural macros to transform attribute-based annotations into executable validation logic, ensuring that data structures adhere to defined constraints before processing. The framework distinguishes itself by performing validation at compile time, which eliminates runtime overhead and provides strict type checking for all rules. It supports recursive traversal of nested data structures and collections, ensuring that every level of a hierarchy is v
ozzo-validation is a programmable data validation library for Go that verifies structs, maps, and primitive types using a declarative, rule-based approach. It functions as an interface-based validator, allowing for the recursive checking of nested data structures and custom types without the use of struct tags. The framework distinguishes itself as a context-aware validation engine, supporting the propagation of request-scoped data to rules that depend on external state. It provides extensive extensibility through custom rule definitions and the ability to override default failure text with l
Ce projet est un framework de validation de données pour le langage de programmation Go qui impose l'intégrité en appliquant des contraintes déclaratives aux champs de struct. Il utilise la réflexion pour inspecter les structures de données au moment de l'exécution, en mappant les exigences au niveau du champ définies dans les tags de struct vers une logique de validation spécifique.
Les fonctionnalités principales de go-validator/validator sont : Data Validation Frameworks, Go Validation Libraries, Struct Tag Validators, Custom Field Validation, Contextual Validation Groups, Reflection-Based Field Matchers, Data Sanitization Utilities, Context-Aware Validation.
Les alternatives open-source à go-validator/validator incluent : asaskevich/govalidator — [Go] Package of validators and sanitizers for strings, numerics, slices and structs. go-playground/validator — This is a Go struct validation library used to maintain data integrity by enforcing constraints on fields, slices, and… keats/validator — This library is a declarative validation framework for Rust that enforces data integrity and business rules on… go-ozzo/ozzo-validation — ozzo-validation is a programmable data validation library for Go that verifies structs, maps, and primitive types… julian/jsonschema — This project is a Python implementation of the JSON Schema specification, providing a library for verifying that data… mitchellh/mapstructure — mapstructure is a reflection-based library for the bidirectional encoding and decoding of generic map data into native…