awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

model attribute validation library (ORM validation)

Ranking updated Jun 30, 2026

For a library for model attribute validation, the first results are fluentvalidation/fluentvalidation (FluentValidation is a ), go-ozzo/ozzo-validation (Ozzo-validation is a declarative, interface-based validation library for Go structs that supports common validators, custom rules, and error message customization, making it a strong fit for validating model attributes, though it lacks built-in ORM/database integration) and typestack/class-validator. jeremyevans/sequel and go-validator/validator round out the shortlist. Compare the match explanations and check the project documentation against your requirements.

We curate open-source GitHub repositories matching “model attribute validations”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.

Results for “a library for model attribute validation”

Find the best repos with AI.We'll search the best matching repositories with AI.
  • fluentvalidation/fluentvalidationFluentValidation avatar

    FluentValidation/FluentValidation

    9,727View on GitHub↗

    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

    FluentValidation is a .NET validation library that lets you define strongly-typed rules for model properties using a fluent interface, but it does not attach rules directly as attributes on the model — it uses separate validator classes, which still fits the need for declarative validation on models with built-in and custom validators.

    C#Custom Validators
    View on GitHub↗9,727
  • go-ozzo/ozzo-validationgo-ozzo avatar

    go-ozzo/ozzo-validation

    4,072View on GitHub↗

    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

    Ozzo-validation is a declarative, interface-based validation library for Go structs that supports common validators, custom rules, and error message customization, making it a strong fit for validating model attributes, though it lacks built-in ORM/database integration.

    GoConditional Validation RulesValidation Error Handlers
    View on GitHub↗4,072
  • typestack/class-validatortypestack avatar

    typestack/class-validator

    11,796View on GitHub↗

    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

    class-validator lets you declare validation rules directly on class properties using decorators, with a comprehensive set of built-in validators, custom rules, and conditional/contextual validation, though it is a standalone library not directly integrated with a specific ORM or database layer.

    TypeScriptConditional Validation Rules
    View on GitHub↗11,796
  • jeremyevans/sequeljeremyevans avatar

    jeremyevans/sequel

    5,076View on GitHub↗

    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 is a full-featured Ruby ORM that includes declarative validation rules directly on model attributes, with built-in validators, custom methods, and error handling, making it an ideal fit for integrating attribute validation into a data-mapping layer.

    RubyConditional Validation Rules
    View on GitHub↗5,076
  • go-validator/validatorgo-validator avatar

    go-validator/validator

    1,335View on GitHub↗

    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

    Package validator is a Go library for declaring validation rules on struct fields using tags, offering a wide range of built-in validators and custom validation support, which directly fits the need for model attribute validation in an ORM context.

    GoData Validation FrameworksGo Validation LibrariesContext-Aware Validation
    View on GitHub↗1,335
  • symfony/validatorsymfony avatar

    symfony/validator

    2,689View on GitHub↗

    This library is a PHP framework for enforcing data integrity and business rules by validating scalar values and complex object structures against predefined constraints. It provides a structured approach to inspecting object graphs and property metadata, ensuring that data conforms to expected requirements before it is processed by an application. The framework distinguishes itself through a metadata-driven mapping system that uses reflection or configuration files to apply rules directly to object properties. It supports contextual rule orchestration, allowing developers to organize constrai

    Symfony Validator allows you to declare validation rules directly on PHP model attributes (via annotations or attributes), offers a comprehensive set of built-in validators, supports custom constraints and error message customization, and integrates tightly with Doctrine ORM — exactly the kind of ORM-integrated validation library this search targets.

    PHPValidation Message Localization
    View on GitHub↗2,689
  • hibernate/hibernate-validatorhibernate avatar

    hibernate/hibernate-validator

    1,266View on GitHub↗

    Hibernate Validator is a reference implementation of the Jakarta Validation specification, serving as a framework for enforcing data integrity across Java applications. It functions as a declarative validation engine that processes object constraints to ensure that application state remains consistent. By utilizing metadata-driven rules, the library validates object properties, method parameters, and nested collections to maintain data standards throughout an application's layers. The library distinguishes itself through its ability to perform static analysis on validation configurations, ide

    Hibernate Validator is the reference implementation of Jakarta Bean Validation, letting you declare validation constraints directly on model attributes with annotations, includes a rich set of built-in validators, supports custom constraints and message customization, and integrates seamlessly with Hibernate ORM — exactly the kind of library this search targets.

    JavaValidation Message Localization
    View on GitHub↗1,266
  • pydantic/pydanticpydantic avatar

    pydantic/pydantic

    26,932View on GitHub↗

    Pydantic is a data validation and serialization library that enforces schema constraints and performs type conversion on complex data structures. It utilizes standard Python type annotations to define data models, allowing developers to establish structured schemas that automatically enforce business rules and constraints without the need for custom domain-specific languages. The library distinguishes itself by transforming high-level model definitions into optimized code during initialization to minimize runtime overhead. It supports recursive validation for nested data structures and employ

    Pydantic lets you define validation rules directly on model attributes using type annotations and custom validators, which fits the core requirement, but it is a general-purpose validation library rather than being specifically integrated with an ORM or data-mapping layer.

    PythonData Validation LibrariesType-Hint-Based Schema DefinitionsSchema-Driven Modeling Frameworks
    View on GitHub↗26,932
  • keats/validatorKeats avatar

    Keats/validator

    2,488View on GitHub↗

    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

    keats/validator is a Rust library that lets you define validation rules declaratively on struct fields using derive macros, but it is designed for general struct validation rather than being tied to a specific ORM or database layer.

    RustDeclarative Validation FrameworksCompile-Time Code GenerationField Validation
    View on GitHub↗2,488
  • thedersen/backbone.validationthedersen avatar

    thedersen/backbone.validation

    1,300View on GitHub↗

    Backbone.validation is a JavaScript library designed to enforce data integrity within Backbone.js models. It provides a framework for defining declarative validation schemas that intercept attribute changes, ensuring that data meets specified business requirements before it is committed to the model. The library distinguishes itself by tightly coupling model-level validation with user interface components. It features an event-driven binding system that monitors model states and automatically triggers interface updates, providing real-time feedback as users interact with forms. This approach

    This Backbone.js plugin adds declarative validation directly on model attributes, with built-in validators and custom methods, exactly fitting the search for a validation library within a data-mapping layer like Backbone's ORM.

    JavaScriptBackbone.js FrameworksAttribute ValidationsAttribute-Driven Validation
    View on GitHub↗1,300
  • dry-rb/dry-validationdry-rb avatar

    dry-rb/dry-validation

    1,422View on GitHub↗

    Dry-validation is a Ruby library designed for defining type-safe schemas and complex validation rules to verify and sanitize input data structures. It provides a formal framework for constructing modular validation logic, ensuring that incoming information meets specific business requirements and data formats before it is processed by an application. The library utilizes a domain-specific language to declare validation rules, which are then parsed into executable objects. It distinguishes itself through a macro-driven system that bundles common validation logic into reusable shortcuts, alongs

    dry-validation is a Ruby library for declaring type-safe validation schemas with built-in predicates for common rules, custom validators, and error messages — it fits the search for a model attribute validation library, though it requires separate integration with an ORM.

    RubyData Validation LibrariesData Schema ValidationSchema Definition Frameworks
    View on GitHub↗1,422
  • neoremind/fluent-validatorneoremind avatar

    neoremind/fluent-validator

    1,019View on GitHub↗

    Fluent-validator is a Java validation framework designed to enforce data integrity through declarative constraints and automated service-layer checks. It provides a structured environment for defining validation logic that integrates with the JSR 303 specification, allowing developers to maintain consistent data quality across complex object hierarchies and application boundaries. The framework distinguishes itself through a fluent interface that enables the orchestration of validation chains, allowing for readable and maintainable rule sequences. It supports advanced execution control, inclu

    This Java validation framework uses a fluent interface and follows the JSR 303 (Bean Validation) standard, letting you declare validation rules directly on model attributes—exactly the kind of library this search describes.

    JavaConditional Validation RulesCustom Validators
    View on GitHub↗1,019
  • igorkasyanchuk/active_storage_validationsigorkasyanchuk avatar

    igorkasyanchuk/active_storage_validations

    1,180View on GitHub↗

    Active Storage Validations is a library for Ruby on Rails that provides model-level validation helpers for file attachments. It integrates directly into the standard validation lifecycle to ensure that uploaded content conforms to defined business requirements before it is persisted to storage. The framework enforces constraints on file size, content type, dimensions, and the number of attachments. It includes security mechanisms to detect and block content-type spoofing by inspecting the binary signature of files to verify that their actual format matches the declared extension. Beyond basi

    Active Storage Validations is a Rails gem that lets you declare validation rules directly on file-attachment model attributes with built-in validators for content type, size, dimensions, and more, making it a genuine model attribute validation library for ORM—but its scope is limited to file attachments rather than all attribute types, which means it covers only part of the desired feature set.

    RubyFile Validation PluginsBinary Signature VerificationFile Upload Constraint Validation
    View on GitHub↗1,180
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
fluentvalidation/fluentvalidation9.7KC#Apache-2.0Jun 4, 2026
go-ozzo/ozzo-validation4.1KGomitMar 23, 2024
typestack/class-validator
11.8K
TypeScript
MIT
Mar 25, 2026
jeremyevans/sequel5.1KRubyotherFeb 18, 2026
go-validator/validator1.3KGoApache-2.0Apr 5, 2022
symfony/validator2.7KPHPMITJun 23, 2026
hibernate/hibernate-validator1.3KJavaApache-2.0Jun 23, 2026
pydantic/pydantic26.9KPythonmitFeb 19, 2026
keats/validator2.5KRustMITJun 16, 2026
thedersen/backbone.validation1.3KJavaScriptMITOct 30, 2017

Related searches

  • a library for validating data in PHP
  • a java library for data validation
  • a data validation library for Go
  • a lightweight validation library for JavaScript
  • a data validation library for Rust
  • a form validation library for React
  • a data validation library using Python type hints
  • a data validation library for application development