6 Repos
External logic providers used to define specialized validation rules for specific properties.
Distinct from Class Property Validation: Focuses on the mechanism for injecting custom validator classes or functions, rather than the general application of property validation.
Explore 6 awesome GitHub repositories matching software engineering & architecture · Custom Validators. Refine with filters or upvote what's useful.
go-swagger is a toolkit for working with Swagger/OpenAPI 2.0 specifications in Go. It generates server, client, and CLI code from a specification document, and can also produce a specification by scanning annotated Go source code. The project includes a static validation engine that checks documents against the schema and project-specific rules, and a specification transformation pipeline that resolves, flattens, and merges documents. The toolkit generates both client and server code from the same specification, ensuring consistency in request and response handling. It also produces a command
Allows injection of custom validation logic into generated Go struct models.
FluentValidation is a .NET validation library used to define strongly-typed validation rules for objects. It utilizes a fluent interface API and lambda expressions to ensure data integrity for classes and properties within the .NET type system. The library separates validation logic from business entities to keep domain models focused on core functionality. This approach enables the enforcement of business logic and the sanitization of input data or API payloads through a sequence of logic checks. The system supports complex validation surface areas, including the ability to nest validators
Allows the integration of custom validator classes and functions to implement domain-specific validation logic.
Superstruct is a JavaScript and TypeScript data validation library used to verify that data structures match defined shapes and types. It functions as a composable schema builder and a TypeScript schema validator, ensuring that runtime data checks remain synchronized with static type definitions. The library features a data coercion engine that transforms input values or injects default values before the validation process is executed. It enables the creation of complex validation rules by nesting, merging, or omitting properties from existing structures. Its capabilities cover the validatio
Provides the mechanism for creating specialized validation rules for types not covered by standard primitives.
Moleculer is a Node.js microservices framework designed for building distributed systems. It functions as a distributed service broker, task orchestrator, and service mesh framework, enabling a decentralized architecture with built-in service discovery and load balancing. The project differentiates itself through a pluggable transport layer supporting protocols such as NATS, Redis, TCP, and Kafka, as well as a dedicated microservices API gateway that maps external HTTP and WebSocket requests to internal service actions. It includes built-in fault tolerance mechanisms, including circuit breake
Allows replacing the default validation engine with a custom class or external library for specialized constraints.
Connexion ist ein Spec-First-Python-Webframework, das darauf ausgelegt ist, Serververhalten und Validierungslogik direkt aus einem vordefinierten API-Vertrag abzuleiten. Es ermöglicht die Entwicklung von Webdiensten durch die Verwendung einer OpenAPI-Spezifikation, um Routing, Request-Validierung und Response-Serialisierung automatisch zu handhaben. Das Framework zeichnet sich dadurch aus, dass es als OpenAPI-Request-Validator und Mock-Server fungiert. Es kann API-Verhalten simulieren, indem es Beispielantworten basierend auf Spezifikationsschemata bereitstellt, was Frontend-Entwicklung und Prototyping vor Abschluss der Backend-Implementierung ermöglicht. Zudem hostet es eine interaktive API-Dokumentationsschnittstelle, die Benutzern eine Konsole zur Visualisierung und zum Testen von Endpunkten bietet. Das Projekt deckt ein breites Spektrum an Funktionen ab, einschließlich automatisierter Routenregistrierung, Parameter-Injektion und Sicherheitsdurchsetzung basierend auf Vertragsdefinitionen. Es bietet zudem Tools zur Schema-Validierung von Requests und Responses sowie die Möglichkeit, Anwendungs-Exceptions auf standardisierte maschinenlesbare Fehlerantworten abzubilden.
Defines pluggable validation logic for request bodies and responses based on specific content types.
Fluent-validator ist ein Java-Validierungs-Framework zur Durchsetzung von Datenintegrität durch deklarative Constraints und automatisierte Service-Layer-Prüfungen. Es bietet eine strukturierte Umgebung zur Definition von Validierungslogik, die sich in die JSR 303-Spezifikation integriert, was es Entwicklern ermöglicht, eine konsistente Datenqualität über komplexe Objekt-Hierarchien und Anwendungsgrenzen hinweg zu wahren. Das Framework zeichnet sich durch ein flüssiges Interface aus, das die Orchestrierung von Validierungsketten ermöglicht, was zu lesbaren und wartbaren Regelsequenzen führt. Es unterstützt fortgeschrittene Ausführungskontrolle, einschließlich der Fähigkeit, zwischen Fail-Fast- und Fail-Over-Strategien zu wechseln, und nutzt Proxy-basierte Interception, um Methodenargumente innerhalb verwalteter Container automatisch zu verifizieren. Über die Standard-Constraint-Integration hinaus erleichtert die Bibliothek tiefe Datenintegrität durch rekursive Objektgraph-Traversierung und kaskadierte Validierung. Sie kommt dynamischen Geschäftsanforderungen entgegen, indem sie bedingte Logik, Validierungsgruppen für kontextbewusste Regelauflösung und die Injektion externer Eigenschaften in den Validierungsumfang unterstützt. Entwickler können zudem benutzerdefinierte Validierungsklassen implementieren, um einzigartige Datenanforderungen neben Standard-Annotationen zu handhaben.
Enables developers to define reusable custom validation classes for unique data requirements.