15 repositorios
Logic for enforcing field requirements based on the state or values of other form fields.
Distinct from Field Validation: Distinct from Field Validation: focuses specifically on cross-field dependency logic rather than general data integrity.
Explore 15 awesome GitHub repositories matching data & databases · Conditional Validation Rules. Refine with filters or upvote what's useful.
Yup is a JavaScript schema validation library used to define data shapes and validate runtime values. It functions as an object schema validator and a data coercion engine, allowing developers to transform raw input values into desired types before performing validation checks. The library is distinguished by its support for dynamic schema validation, where rules can be adjusted at runtime based on sibling field values or external context. It also enables recursive data structuring for polymorphic fields and provides a system for extracting static TypeScript interfaces from runtime schema def
Provides logic for enforcing field requirements based on the state or values of sibling fields.
Joi is a JavaScript data validation library used to define schemas that validate, cast, and sanitize data objects. It functions as an object schema validator and parser, ensuring that input data matches specific types and formats before it is processed by an application. The library features a conditional validation engine capable of dynamic schema enforcement, where validation logic and dependencies change based on the values of other keys within an object. It also serves as a data casting and sanitization tool, transforming input values into target types and removing sensitive keys from the
Enforces validation rules dynamically based on the values of other keys within the object.
Wasp is a declarative full-stack web framework that enables developers to build and deploy applications by defining their architecture in a centralized configuration. By using a high-level specification, the framework automates the orchestration of frontend, backend, and database components, ensuring that infrastructure concerns like routing, authentication, and data modeling are handled consistently across the entire stack. The framework distinguishes itself through its compiler-driven approach, which translates declarative configurations into cohesive, production-ready codebases. It provide
Enforces field requirements based on the state or values of other form fields to ensure data consistency.
Ajv is a high-performance data validation framework that compiles JSON schemas into optimized, standalone JavaScript functions. By transforming declarative schema definitions into executable code, it eliminates runtime interpretation overhead and provides a secure, efficient way to enforce data integrity across both browser and server environments. The library distinguishes itself through its focus on performance and type safety. It employs advanced compilation techniques, including abstract syntax tree optimization and function caching, to ensure rapid validation. Beyond standard checks, it
Executes specific validation rules based on prerequisite schema satisfaction, enabling complex if-then-else branching.
class-validator is a TypeScript class validation library that uses decorators to define constraints and rules for object properties. It functions as a decorator-based schema validator that ensures data integrity and structural correctness through a combination of synchronous checks and promise-based asynchronous rules. The library provides a recursive validation system for checking complex data hierarchies, including nested classes and individual elements within collections. It includes an object property whitelist utility capable of stripping undocumented properties or blocking unknown field
Allows skipping specific property checks based on boolean condition functions or property-level triggers.
This PHP routing library is an HTTP request router and matcher designed to map incoming URL paths to specific controller actions using defined patterns and configuration. It serves as a programmatic interface for defining, loading, and resolving URL patterns, while providing a URL generator to produce absolute or relative URIs from route names and parameters. The system supports diverse route loading through YAML, XML, PHP arrays, and class attributes, utilizing compiled route matching to optimize performance. It enables sophisticated request handling through regex-based path matching, sub-do
Applies validation rules to form fields based on the values of other dependent fields.
DataTables is a feature-rich HTML table library that transforms static HTML tables into interactive data grids with sorting, paging, filtering, and server-side processing support. It provides a client-side rendering engine that handles table rows, pagination, and sorting entirely in the browser, while also offering a server-side processing pipeline that offloads sorting, filtering, and paging operations to a backend for efficient handling of large datasets. The library distinguishes itself through its plugin-based extension system, which allows custom functions and widgets to modify table beh
Applies validation rules to a field only when a condition, such as a value in another field, is met.
Datree is a policy enforcement framework for Kubernetes that validates configurations against rules written in Rego, JSON Schema, or CEL. It operates as both a command-line tool for pre-deployment scanning and as a cluster-side admission webhook for real-time enforcement, integrating with CI/CD pipelines and continuous delivery tools like ArgoCD and FluxCD. The framework supports namespace-scoped policy mapping, allowing different policies to apply to different namespaces, and provides a skip annotation mechanism for selectively bypassing rules on individual resources or entire namespaces. It
Provides annotation-based per-resource policy rule skipping for Kubernetes manifests.
Orval is an OpenAPI-to-TypeScript code generator that produces fully typed API clients, data-fetching hooks, mock data, validation schemas, and server handlers from OpenAPI or Swagger specifications. It reads any YAML or JSON API specification and generates TypeScript interfaces, HTTP request functions, and framework-specific integration code that ensures compile-time correctness for all API calls. The project distinguishes itself by generating production-ready data-fetching hooks for React Query, Vue Query, Svelte Query, Solid Query, Angular, and SWR, complete with automatic cache invalidati
Disables OpenAPI specification validation to allow code generation from non-compliant or extended specs.
Sequel is a relational database toolkit for Ruby that provides object-relational mapping, a fluent SQL query builder, and schema migration capabilities. It maps database tables to Ruby classes with support for associations, validations, lifecycle hooks, and eager loading, offering a comprehensive ORM layer for building data-centric applications. Sequel distinguishes itself through a plugin-based extension architecture that allows composable customization of models, databases, and datasets without relying on deep inheritance hierarchies. It includes a thread-safe connection pool with support f
Sequel applies validation rules only when a given condition is met, using standard Ruby conditionals inside the validate method.
JSON Editor es un framework de UI basado en esquemas y editor basado en web utilizado para generar formularios interactivos y validar datos JSON. Traduce especificaciones de JSON Schema en una jerarquía de elementos de formulario HTML, permitiendo a los usuarios manipular estructuras JSON complejas a través de una interfaz estructurada en lugar de texto crudo. El framework se diferencia por un sistema de extensión basado en plugins que soporta funciones de resolución personalizadas y la integración de editores especializados, como WYSIWYG, Markdown y editores de código con resaltado de sintaxis. Emplea resolución de esquemas recursiva para manejar definiciones anidadas e implementa validación condicional basada en estado utilizando lógica if-then-else. El proyecto proporciona una amplia gama de capacidades, incluyendo enlace de datos bidireccional, gestión de layout de objetos y arrays para rejillas y pestañas, y sincronización dinámica de campos mediante interpolación de plantillas. Su librería de componentes cubre entradas estándar junto con herramientas especializadas como selectores de color, selectores de fecha y hora, componentes de autocompletado e interfaces de carga de archivos. La interfaz soporta la localización de cadenas de UI e integra varios frameworks CSS para desacoplar la generación estructural de formularios del estilo visual.
Applies dynamic validation rules using if-then-else logic based on the current values of other form fields.
Dynaconf es una biblioteca de gestión de configuración para aplicaciones de Python que proporciona un sistema unificado para cargar, validar y gestionar ajustes. Agrega datos de configuración de múltiples archivos, variables de entorno y almacenes externos en un solo objeto utilizando un orden de precedencia definido. El proyecto se distingue por un gestor de entorno en capas que separa los ajustes en perfiles distintos, como desarrollo y producción. Incluye un framework de validación declarativa para imponer reglas de datos y restricciones de tipo durante el proceso de carga, así como un integrador de almacén de secretos externo para recuperar datos sensibles de HashiCorp Vault y Redis. La biblioteca admite la carga de archivos en múltiples formatos para archivos TOML, YAML, JSON, INI y Python. Proporciona capacidades para el casting de variables de entorno, búsqueda con notación de puntos e integración con frameworks web como Django y Flask para reemplazar objetos de configuración estándar. Las utilidades de línea de comandos están disponibles para el bootstrapping de configuración, validación de ajustes y realización de anulaciones en tiempo real.
Implements validation rules that run only when specific conditions are met or after other validators pass.
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
Executes specific validation rules only when a boolean condition is met.
Skips file-based labeling when the number of changed files exceeds a configurable limit.
Fluent-validator es un framework de validación de Java diseñado para aplicar la integridad de los datos a través de restricciones declarativas y comprobaciones automatizadas en la capa de servicio. Proporciona un entorno estructurado para definir la lógica de validación que se integra con la especificación JSR 303, permitiendo a los desarrolladores mantener una calidad de datos consistente en jerarquías de objetos complejas y límites de aplicación. El framework se distingue por una interfaz fluida que permite la orquestación de cadenas de validación, permitiendo secuencias de reglas legibles y mantenibles. Admite un control de ejecución avanzado, incluida la capacidad de cambiar entre estrategias de fallo rápido y tolerancia a fallos, y utiliza la interceptación basada en proxy para verificar automáticamente los argumentos de los métodos dentro de contenedores gestionados. Más allá de la integración de restricciones estándar, la librería facilita una integridad de datos profunda a través del recorrido recursivo de grafos de objetos y la validación en cascada. Se adapta a los requisitos comerciales dinámicos al admitir lógica condicional, grupos de validación para la resolución de reglas consciente del contexto y la inyección de propiedades externas en el alcance de la validación. Los desarrolladores también pueden implementar clases de validación personalizadas para manejar requisitos de datos únicos junto con anotaciones estándar.
Executes specific validation rules only when defined runtime conditions are met to handle dynamic business requirements.