27 个仓库
Custom validation rules that return promises to handle checks involving external network calls.
Distinct from Custom Validation Rules: More specific than general custom rules; explicitly handles the promise-based asynchronous nature of remote checks.
Explore 27 awesome GitHub repositories matching software engineering & architecture · Asynchronous Validators. Refine with filters or upvote what's useful.
This project is a Python-based proxy pool manager that collects, validates, and serves free proxy IP addresses through an HTTP API. It consists of an automated scraper to gather addresses from multiple online sources, a persistent database-backed store for organization, and a delivery interface for retrieving validated proxies. The system features a pluggable scraper architecture that allows for the integration of custom discovery methods and source expansion via generator functions. It employs decorator-based validation logic, enabling the definition of custom connectivity and HTTPS criteria
Enables the definition of custom validation logic using functions and decorators based on HTTP response criteria.
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
Maintains a registry where custom validator functions are mapped to string identifiers for dynamic lookup during evaluation.
async-validator 是一个 JavaScript 模式验证库和异步数据验证引擎。它通过应用递归规则和非阻塞的、基于 Promise 的执行来验证复杂的对象结构和嵌套数组,以确保数据完整性。 该库既充当对象约束验证器,也充当数据转换流水线。它允许通过在主要验证过程之前和之后运行的一系列函数来对输入值进行清洗、强制转换和格式化。 该引擎涵盖了一系列功能,包括递归嵌套验证、标准模式约束的强制执行,以及通过定制验证器函数集成自定义业务逻辑。它还提供了通过静态字符串或动态函数进行错误消息自定义和本地化的工具。
Provides support for executing both synchronous and asynchronous custom validation logic on specific object fields.
Parsley.js is a JavaScript form validation library that provides a client-side data validator for verifying input correctness before submission. It functions as an HTML attribute-based validator, allowing constraints to be defined declaratively within HTML data attributes to enforce rules without requiring custom scripts. The framework distinguishes itself through a customizable validation system that supports user-defined rules and custom error message templates. It includes a remote validation interface to verify form values against server endpoints via asynchronous network requests and sup
Allows the creation of user-defined rules that return promises for asynchronous validation.
Base UI is a headless component library and unstyled framework providing accessible interface primitives. It decouples behavioral logic and state management from the visual layer, allowing developers to implement complex UI patterns while maintaining total control over the final styling. The library implements WAI-ARIA design patterns to ensure all primitives support standard keyboard navigation and screen reader accessibility. It provides a suite of low-level building blocks that handle the internal mechanics of interface elements without bundling any CSS. The framework covers a broad range
Runs synchronous or asynchronous validation functions on fields during submission or change events with optional debouncing.
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
Integrates user-defined synchronous and asynchronous functions into the validation process to enforce complex constraints.
react-final-form is a React form state management library that provides a framework for declarative form validation and the orchestration of dynamic input fields. It utilizes a subscription-based state manager to trigger interface updates only for the specific fields that change during user input, which optimizes rendering by limiting unnecessary component re-renders. The library functions as a dynamic input field orchestrator, allowing users to add, remove, or reorder lists of form fields. It manages complex form state through a system that supports conditional field rendering and real-time
Supports asynchronous validators that prevent the main input thread from blocking during complex validation checks.
Go Package of validators and sanitizers for strings, numerics, slices and structs
Supports passing arguments to validators via tag syntax, enabling configurable validation rules per field.
GraphQL.NET 是一个用于在 C# 应用程序中构建和执行 GraphQL API 的服务端框架。它提供了一套全面的工具包,用于模式构建、分布式数据图的联合引擎,以及用于管理实时数据流的订阅处理器。 该项目的独特之处在于其灵活的模式构建器,支持程序化的代码优先定义和使用标准模式定义语言的声明式模式优先方法。它包括一个专门的联合引擎,用于将数据图拆分为子图并将其组合成统一的网关,以及一个专门设计用于通过批处理和缓存解决 N+1 查询问题的数据加载器实现。 该框架涵盖了广泛的操作功能,包括用于服务生命周期管理的依赖注入集成、用于字段解析拦截的中间件流水线,以及针对值类型优化以减少内存分配的执行流水线。它还提供用于查询复杂度分析、文档缓存和基于角色的访问控制的工具,以保护 API 端点。 对提前(AOT)模式编译的支持允许该框架在禁止动态代码生成的环境中执行。
Runs validation rules asynchronously to support remote authentication checks and external data lookups.
immutability-helper 是一个不可变数据操作库和对象实用工具,用于创建对象和数组的修改副本。它作为一个基于命令的状态管理器和函数式数据转换器,确保原始源数据在更新过程中保持不变。 该库通过使用一组声明式的变异命令和描述符来指定更改,从而脱颖而出。如果在变异过程中没有发生实际更改,它会返回原始对象引用,从而保持引用相等性。 它提供了对嵌套结构进行深度克隆以及对对象、数组、Map 和 Set 执行复杂状态变异的功能。该系统支持通过可插拔的变异引擎合并不可变对象并应用自定义转换逻辑。
Uses a lookup table to map identifiers to user-defined functions for specialized data transformations.
本项目是 JSON Schema 规范的 Python 实现,提供了一个用于验证数据实例是否符合定义模式的库。它作为一个数据验证框架,能够验证数据本身以及模式是否符合官方元模式,以确保结构正确性。 该库具有一个模式引用解析器,可将 URI 映射到定义,从而实现用于模块化模式管理的内部和远程引用解析。它专为可扩展性而设计,允许定义自定义关键字、自定义类型检查逻辑,并为专门的字符串格式注册新的验证函数。 该系统提供全面的错误报告,可识别数据实例中的所有违规行为,并将它们组织成树状层次结构。这允许对验证失败进行程序化查询、诊断元数据提取以及基于数据层次结构识别主要错误。 该实现通过特定版本的验证器类和模式方言规范支持多种规范草案。
Maps specific schema keywords to custom Python callables for implementing specialized business validation rules.
本项目是一个 JSON Schema 验证库和框架,用于验证数据实例是否符合声明性定义。它作为一个验证引擎,强制执行结构约束和数据类型,同时也作为一个元验证器,确保模式定义本身在语法上符合官方元模式。 该库专为可扩展性而设计,允许用户通过将模式关键字映射到专门的可调用函数来定义自定义验证逻辑。它包括一个基于注册表的引用解析器,用于管理内部和外部 URI 引用,以便在不同文档间重用子模式。 该系统涵盖了广泛的验证功能,包括数据类型验证、针对电子邮件和 UUID 等类型的字符串格式检查,以及全面的错误报告。诊断工具提供嵌套错误跟踪和启发式过滤,以识别数据结构中最相关的失败。
Enables mapping schema keywords to custom callable functions and configuring specialized type and format checkers.
IPProxyPool 是一个 HTTP 代理池管理器,通过编程 API 抓取、验证并提供功能性代理地址的轮询列表。它集成了代理抓取、连接验证和持久数据库存储,为网络请求提供受管理的 IP 地址来源。 该系统使用基于插件的抓取架构从多个外部网站收集 IP 地址,并使用异步验证队列并行测试这些候选者。它通过定期健康检查和连接验证为代理分配数值稳定性分数,从而区分其代理池,允许检索按地区和协议过滤的高稳定性地址。 该项目包括一个带有可插拔后端的数据持久化数据库抽象层,并提供用于清除特定代理条目的工具。它还支持自定义验证逻辑,以定义用于确定代理有效性的具体标准。
Provides a framework for executing custom synchronous or asynchronous validation functions to determine proxy validity.
v8n 是一款 JavaScript 数据验证库,用于验证值、对象和数组是否符合特定标准。它作为一个基于模式的验证器和异步验证引擎,利用流畅的 API 构建可链式调用的规则和约束序列。 该框架因其能够在验证过程中执行 Promise 和网络请求以确定值是否有效而脱颖而出。它允许创建可重用的验证模式,并提供了一个可自定义的规则框架,用户可以在其中定义自己的逻辑并配置如何返回错误结果。 该库涵盖了广泛的验证功能,包括针对原始类型和原型的数据类型验证、通过正则表达式和字符集的字符串内容验证,以及数值约束。它还支持复杂的对象验证、集合和数组元素验证,以及用于反转规则或处理可选值的条件逻辑。 该系统专为详细的错误收集而设计,根据每个定义的规则评估值,以收集完整的失败列表,而不是在第一个错误处停止。
Supports custom validation rules that return promises for performing asynchronous external lookups.
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
Transforms simple boolean functions into complex validation objects that support custom error messages and metadata.
ow is a type-safe schema validation library for TypeScript that verifies data integrity at runtime. It functions as a runtime validation framework and type guard utility, ensuring that JavaScript values match expected types and schemas before they are processed. The library synchronizes runtime data checks with static TypeScript type definitions, allowing users to extract type definitions directly from validation predicates. This integration enables type narrowing, where a successful validation result refines the variable type for safer usage in the code. The framework uses a chainable API t
Executes custom synchronous or asynchronous validation logic with support for specific error messages.
Flasgger is a documentation framework for Flask applications that generates OpenAPI specifications and an integrated Swagger UI. It functions as a documentation generator and specification parser that extracts API schemas from route definitions, function docstrings, and external specification files. The tool allows API definitions to be maintained either within the source code using YAML blocks in docstrings or decoupled into standalone YAML files. It provides a browser-based interactive console for testing and exploring API endpoints directly from the web application. Beyond documentation,
Supports the use of custom functions to replace default schema validation and handle data verification errors.
Flasgger is an OpenAPI documentation generator for Flask that creates interactive API specifications and Swagger UI documentation directly from application docstrings. It functions as an OpenAPI schema validator, verifying that incoming request data matches defined specifications and returning standardized error responses. The project includes a Marshmallow schema bridge to convert data structures into OpenAPI definitions and integrates a web interface for visualizing and testing API endpoints through an embedded interactive console. It further supports dynamic specification resolution, allow
Provides support for replacing default schema validation with custom user-defined functions.
This project is a client-side data management library and query orchestrator designed to synchronize remote server state with local client state. It functions as a type-safe state manager and cache orchestrator that coordinates data loading across diverse backends, including REST, GraphQL, and WebSockets. The system distinguishes itself through a durable workflow engine for executing asynchronous functions with persisted state and deterministic replay. It also provides a standardized AI integration adapter to connect large language models to application data, supporting real-time response str
Executes debounced background checks via asynchronous validators to enforce form rules without blocking the interface.
Spectral is a programmable linting engine and validation tool designed to enforce style guidelines and schema correctness within OpenAPI specifications and JSON configuration files. It functions as a rule-based validator that analyzes structured text files to ensure data consistency and adherence to predefined constraints. The engine utilizes a configuration-driven execution model, allowing users to manage pluggable rule sets and integrate JSON Schema definitions. It supports the creation of custom function-based rules to define complex validation logic beyond static declarations. The projec
Allows the use of external JavaScript functions to define complex validation logic beyond static declarations.