awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目MCP 服务器关于排名机制媒体报道
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

14 个仓库

Awesome GitHub RepositoriesClass Property Validation

Runtime validation of class properties using decorators to ensure data integrity.

Distinct from Request Validation Classes: None of the candidates describe the general pattern of validating class properties via decorators.

Explore 14 awesome GitHub repositories matching software engineering & architecture · Class Property Validation. Refine with filters or upvote what's useful.

Awesome Class Property Validation GitHub Repositories

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • typestack/class-validatortypestack 的头像

    typestack/class-validator

    11,796在 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

    Checks that class properties meet specific criteria using decorators to ensure data integrity before processing.

    TypeScriptdecoratorstypescriptvalidation
    在 GitHub 上查看↗11,796
  • go-swagger/go-swaggergo-swagger 的头像

    go-swagger/go-swagger

    9,989在 GitHub 上查看↗

    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.

    Goapicode-generatorgo
    在 GitHub 上查看↗9,989
  • fluentvalidation/fluentvalidationFluentValidation 的头像

    FluentValidation/FluentValidation

    9,727在 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

    Allows the integration of custom validator classes and functions to implement domain-specific validation logic.

    C#
    在 GitHub 上查看↗9,727
  • arktypeio/arktypearktypeio 的头像

    arktypeio/arktype

    7,780在 GitHub 上查看↗

    Arktype is a TypeScript runtime validation library and schema orchestrator. It synchronizes TypeScript types with runtime data validation, allowing users to define type-safe schemas that ensure unknown data adheres to specific structures during application execution. The project distinguishes itself by using set-theory type analysis to determine intersections and subtype compatibility, alongside JIT-compiled validation functions for optimized performance. It supports advanced type modeling through branded type constraints, recursive alias resolution, and the ability to generate runtime valida

    Constrains types to specific classes using instance checks during runtime validation.

    TypeScriptjavascriptparsingruntime-typechecking
    在 GitHub 上查看↗7,780
  • webmozarts/assertwebmozarts 的头像

    webmozarts/assert

    7,648在 GitHub 上查看↗

    This PHP assertion library is a runtime data validator used to verify method inputs and outputs. It provides a toolkit for validating data types, numeric ranges, and string patterns during program execution to prevent invalid states. The project serves as a static analysis helper by providing type hints and annotations that improve the accuracy of formal verification tools. It includes a collection validation utility for applying rules across arrays or iterable collections, and a filesystem validation tool to verify path existence and read or write permissions. The library covers a broad ran

    Verifies the existence of specific methods or properties and checks if class properties have been initialized.

    PHP
    在 GitHub 上查看↗7,648
  • ianstormtaylor/superstructianstormtaylor 的头像

    ianstormtaylor/superstruct

    7,141在 GitHub 上查看↗

    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.

    TypeScriptinterfacejavascriptschema
    在 GitHub 上查看↗7,141
  • symfony/translationsymfony 的头像

    symfony/translation

    6,607在 GitHub 上查看↗

    Symfony Translation is a PHP library and framework component for internationalizing applications. It provides a complete system for managing message catalogs, handling locale-aware string translation, and formatting messages using ICU MessageFormat syntax to support pluralization, gender, and conditional selection. The component organizes translatable strings into named domains, supports key-based lookup that decouples source text from localized versions, and offers deferred rendering through translatable objects that store parameters and render only when output is needed. The library disting

    Enables adding validation constraints to third-party classes without modifying their source code.

    PHPcomponentphpsymfony
    在 GitHub 上查看↗6,607
  • moleculerjs/moleculermoleculerjs 的头像

    moleculerjs/moleculer

    6,373在 GitHub 上查看↗

    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.

    JavaScript
    在 GitHub 上查看↗6,373
  • jeremyevans/sequeljeremyevans 的头像

    jeremyevans/sequel

    5,076在 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

    Defines validations using class-level declarations instead of instance methods for legacy compatibility.

    Ruby
    在 GitHub 上查看↗5,076
  • strawberry-graphql/strawberrystrawberry-graphql 的头像

    strawberry-graphql/strawberry

    4,674在 GitHub 上查看↗

    Strawberry 是一个用于 Python 的类型安全 GraphQL 库,支持使用 Python 类型注解和数据类(dataclasses)来设计 Schema。它作为一个异步 GraphQL 服务器和执行引擎,提供了将 Schema 暴露给 ASGI 兼容 Web 框架(如 FastAPI、Django、Flask 和 Litestar)的桥梁。 该项目实现了 GraphQL Federation,允许创建分布式 Schema 和实体,并将它们合并为跨多个服务的统一超图(supergraph)。它还包含一个专用的 Relay 规范工具包,支持全局对象标识和基于连接的分页。 该框架涵盖了广泛的能力,包括通过 WebSocket 和服务器发送事件(SSE)进行实时数据流传输、Pydantic 模型映射以及自动代码生成。它为安全性和可观测性提供了集成工具,例如查询复杂度限制、基于角色的访问控制(RBAC)和执行指标追踪。 开发者可以使用内置的开发服务器和交互式 Schema 检查界面进行原型设计。

    Enforces custom constraints during the query validation phase to ensure requests adhere to specific rules.

    Pythonasgiasynciodjango
    在 GitHub 上查看↗4,674
  • spec-first/connexionspec-first 的头像

    spec-first/connexion

    4,600在 GitHub 上查看↗

    Connexion 是一个规范优先(Spec-first)的 Python Web 框架,旨在直接从预定义的 API 契约中派生服务器行为和验证逻辑。它通过使用 OpenAPI 规范自动处理路由、请求验证和响应序列化,从而实现 Web 服务的开发。 该框架通过充当 OpenAPI 请求验证器和 Mock 服务器而脱颖而出。它可以通过基于规范模式提供示例响应来模拟 API 行为,从而允许在后端实现完成之前进行前端开发和原型设计。此外,它还托管一个交互式 API 文档界面,为用户提供可视化和测试端点的控制台。 该项目涵盖了广泛的功能,包括基于契约定义的自动路由注册、参数注入和安全性实施。它还提供了用于请求和响应模式验证的工具,以及将应用异常映射到标准化机器可读错误响应的能力。

    Defines pluggable validation logic for request bodies and responses based on specific content types.

    Pythonapi-firstapi-restflask-extensions
    在 GitHub 上查看↗4,600
  • symfony/serializersymfony 的头像

    symfony/serializer

    2,547在 GitHub 上查看↗

    This library is a PHP-based serialization framework designed to convert complex object graphs into structured formats such as JSON, XML, YAML, and CSV, and to reconstruct those objects from serialized data. It functions as a data transformation tool that maps object properties to array structures, facilitating both application state persistence and the exchange of data between systems. The framework distinguishes itself through a two-stage pipeline that normalizes objects into intermediate structures before encoding them into specific formats. It supports advanced mapping requirements, includ

    Enables applying serialization attributes to third-party classes without modifying source code by mapping metadata to target classes.

    PHPcomponentphpsymfony
    在 GitHub 上查看↗2,547
  • ali-bouali/book-social-networkali-bouali 的头像

    ali-bouali/book-social-network

    1,051在 GitHub 上查看↗

    This platform is a social network application designed for managing community book exchanges and personal digital libraries. It provides a structured environment for users to organize book collections, coordinate the borrowing and returning of items, and manage approval workflows for shared resources. The system is built as a RESTful backend that integrates user account management with secure, token-based authentication. It utilizes email-driven identity verification to secure access and maintains persistent state through a relational database, ensuring that user profiles and library assets r

    Uses declarative class and field annotations to trigger automated integrity checks during runtime.

    TypeScriptangulardockerjava
    在 GitHub 上查看↗1,051
  • neoremind/fluent-validatorneoremind 的头像

    neoremind/fluent-validator

    1,019在 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

    Automates object graph validation and service argument checks using declarative annotations and method interception.

    Java
    在 GitHub 上查看↗1,019
  1. Home
  2. Software Engineering & Architecture
  3. Class Property Validation

探索子标签

  • Class Instance ValidationValidation logic that specifically checks if a value is an instance of a particular class. **Distinct from Class Property Validation:** Distinct from Class Property Validation: checks the identity of the class instance itself rather than the values of its properties.
  • Class-Level Validation Declarations2 个子标签Validation rules defined using class-level declarations instead of instance methods, for legacy compatibility. **Distinct from Class Property Validation:** Distinct from Class Property Validation: focuses on declarative validation syntax at the class level, not runtime decorator-based validation.
  • Custom Validators3 个子标签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.
  • GraphQL Query Validation RulesEnforcement of custom constraints and rules during the GraphQL query validation phase. **Distinct from Custom Validators:** Focuses on validating the incoming GraphQL query document against custom rules, not validating object properties.
  • Third-Party Class Validation ExtensionsAdds or overrides validation constraints on classes that cannot be modified, using a separate abstract class. **Distinct from Class Property Validation:** Distinct from Class Property Validation: focuses on extending validation on unmodifiable third-party classes, not general property validation.