15 个仓库
Mechanisms for overriding default error messages and providing localized or dynamic failure text during data validation.
Distinguishing note: The candidates refer to proxy, storage, or UI overrides, whereas this is specifically about customizing validation failure messages.
Explore 15 awesome GitHub repositories matching software engineering & architecture · Validation Error Customizations. Refine with filters or upvote what's useful.
async-validator 是一个 JavaScript 模式验证库和异步数据验证引擎。它通过应用递归规则和非阻塞的、基于 Promise 的执行来验证复杂的对象结构和嵌套数组,以确保数据完整性。 该库既充当对象约束验证器,也充当数据转换流水线。它允许通过在主要验证过程之前和之后运行的一系列函数来对输入值进行清洗、强制转换和格式化。 该引擎涵盖了一系列功能,包括递归嵌套验证、标准模式约束的强制执行,以及通过定制验证器函数集成自定义业务逻辑。它还提供了通过静态字符串或动态函数进行错误消息自定义和本地化的工具。
Allows developers to override default error messages with localized or dynamic text during the validation process.
intl-tel-input is an international telephone input widget that provides a country-aware phone number entry experience with automatic formatting, validation, and E.164 normalization. It combines a searchable country picker with a format-as-you-type engine and a validation rule engine that checks numbers against country-specific patterns, returning machine-readable error codes when a number is invalid. The project ships as both a zero-dependency vanilla JavaScript library and as framework-specific components for React, Vue, Angular, and Svelte, all sharing the same core logic through a framewor
Returns machine-readable error codes when phone number validation fails for custom error handling.
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
Allows overriding default validation error messages with customizable and localized failure text.
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
Provides mechanisms for developers to define custom logic for reporting specific failure details during validation.
Twirp 是一个 Protocol Buffers RPC 框架,旨在实现基于 HTTP 的类型安全、分布式微服务通信。它作为一个微服务通信框架和 API 代码生成器,从模式定义中生成强类型的客户端存根和服务器接口,以消除手动网络样板代码。 该框架通过在标准 HTTP 传输上执行远程过程调用,确保与现有 Web 基础设施的兼容性。它使用模式驱动的契约作为单一事实来源,以实现跨语言互操作性并将业务逻辑与网络传输解耦。 该系统涵盖了几个核心能力领域,包括接口驱动的路由、支持 JSON 和二进制的多格式数据序列化,以及用于横切关注点的请求生命周期中间件。它还提供了一个标准化的错误映射系统,将服务故障转换为机器可读的代码,并包括用于客户端兼容性验证的工具。
Sends structured error responses containing both machine-readable codes and human-readable descriptive messages.
Go Package of validators and sanitizers for strings, numerics, slices and structs
Overrides default validation error messages with custom text by appending it to the validation tag.
CUE is a constraint-based configuration language designed for data validation, schema definition, and code generation. At its core, it unifies types and values into a single concept, enabling compile-time validation that catches structural and value errors before runtime. The language treats data and constraints as the same thing, allowing a single definition to serve as both a schema and concrete configuration data. CUE distinguishes itself through its constraint-based unification engine, which combines multiple configuration sources into a single coherent result by merging their constraints
Provides the error builtin to generate bottom values with custom error messages during validation.
libusb is a cross-platform user-space library that provides a consistent C API for discovering, configuring, and communicating with USB devices from applications. It abstracts operating-system-specific USB driver details behind a single interface that works on Linux, macOS, Windows, and other platforms, enabling developers to write portable USB code without platform-specific knowledge. The library supports both synchronous and asynchronous I/O models for USB transfers. Synchronous operations block the calling thread until a transfer completes, offering a straightforward sequential programming
Ships a convention of returning negative error codes that map to documented constants for diagnosing USB communication failures.
Typia is a compile-time code generator that transforms TypeScript type annotations into runtime validation, serialization, and schema functions without requiring decorators or separate schema files. It generates optimized validation and serialization code during TypeScript compilation, producing dedicated functions for each type that eliminate runtime schema objects for faster execution. The project extends this core capability into several integrated areas. It generates fully typed client SDKs from NestJS controller source code, keeping server and client types synchronized automatically. It
Accepts an error factory callback to replace the default error with a custom error instance for framework integration.
GraphQL-Ruby is a Ruby library for building GraphQL APIs with a strongly typed schema and a dedicated query execution engine. It provides a comprehensive framework for mapping application objects to a formal type system, enabling structured data fetching through defined resolvers. The project distinguishes itself with advanced performance and delivery mechanisms, including a data loader for batching and caching to prevent N+1 query patterns. It supports high-performance data delivery through incremental response streaming, deferred query responses, and parallel data fetching using fibers. Add
Attaches structured error responses containing machine-readable codes and custom metadata to the response JSON.
Goravel 是一个功能齐全的开发脚手架和框架,用于使用 Go 编程语言构建 Web 应用、REST API 和 gRPC 服务。它实现了模型-视图-控制器(MVC)架构,并为高性能远程过程调用服务器和客户端提供了全面的工具包。 该框架的独特之处在于其广泛的集成生态系统,包括用于数据库管理的流畅对象关系映射器(ORM),以及用于管理自动化和项目脚手架的专用命令行界面工具包。它具有基于驱动的服务抽象,允许开发者在不更改应用逻辑的情况下切换存储、缓存和会话后端。 该平台涵盖了广泛的应用功能,包括带有分布式队列的异步任务处理、通过基于令牌的身份验证进行的安全身份管理,以及具有加密和访问控制的稳健安全层。它还提供内容本地化、模板渲染以及带有依赖模拟的自动化测试基础设施工具。
Allows overriding default validation error messages and attribute names for better user feedback.
Strong Migrations 是一个 PostgreSQL 迁移安全工具,旨在通过检测和阻止有风险的模式更改来防止生产停机。它作为一个模式验证器,识别危险的数据库操作并建议安全的替代方案,以确保零停机部署。 该项目通过充当数据库锁管理器和索引优化器脱颖而出。它管理语句超时并实现锁超时的自动重试逻辑,以防止数据库拥塞。此外,它还提供了清理无效并发索引并在模式更改后更新表统计信息的实用程序,以保持查询规划器的性能。 该工具涵盖了广泛的数据库管理功能,包括具有可自定义规则的安全验证、自动化迁移模式以及列字母排序等结构化模式组织。它使用版本感知验证来使安全检查与目标数据库引擎的特定功能保持一致。
Enables the definition of custom safety rules and overriding default error messages for migration validation.
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
Allows the user to override default failure text for built-in rules on a per-instance or global basis.
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
Provides mechanisms for overriding default error messages with specific text or dynamic functions.
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,
Defines custom handlers for data validation failures to return specific error messages or HTTP status codes.