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 للتحقق من المخططات ومحرك للتحقق من البيانات غير المتزامن. تتحقق من هياكل الكائنات المعقدة والمصفوفات المتداخلة من خلال تطبيق قواعد متكررة وتنفيذ غير حظر (non-blocking) يعتمد على الوعود (promises) لضمان سلامة البيانات. تعمل المكتبة كمدقق لقيود الكائنات وخط أنابيب لتحويل البيانات. تسمح بتنقية، وإكراه، وتنسيق قيم المدخلات من خلال سلسلة من الدوال التي تعمل قبل وبعد عملية التحقق الأساسية. يغطي المحرك مجموعة من القدرات بما في ذلك التحقق المتداخل المتكرر، وفرض قيود المخطط القياسية، وتكامل منطق الأعمال المخصص عبر دوال تحقق مصممة خصيصاً. كما توفر أدوات لتخصيص رسائل الخطأ والترجمة من خلال سلاسل ثابتة أو دوال ديناميكية.
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 هو إطار عمل RPC لـ Protocol Buffers مصمم لتنفيذ اتصالات الخدمات المصغرة الموزعة والآمنة من حيث النوع عبر HTTP. يعمل كإطار عمل لاتصالات الخدمات المصغرة ومولد كود API ينتج كعوب عميل (Client stubs) وواجهات خادم مكتوبة بقوة من تعريفات المخطط للقضاء على الكود المتكرر للشبكة يدوياً. يضمن إطار العمل التوافق مع بنية الويب التحتية الحالية من خلال تنفيذ استدعاءات الإجراءات البعيدة عبر نقل HTTP القياسي. يستخدم العقود القائمة على المخطط كمصدر وحيد للحقيقة لتمكين التشغيل البيني عبر اللغات وفصل منطق العمل عن نقل الشبكة. يغطي النظام العديد من مجالات القدرات الأساسية، بما في ذلك التوجيه القائم على الواجهة، وتسلسل البيانات متعدد التنسيقات الذي يدعم كلاً من 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 هو مكتبة Ruby لبناء واجهات برمجة تطبيقات GraphQL بمخطط مكتوب بقوة ومحرك تنفيذ استعلام مخصص. يوفر إطار عمل شاملاً لربط كائنات التطبيق بنظام أنواع رسمي، مما يتيح جلب البيانات المهيكلة من خلال أدوات حل (Resolvers) محددة. يتميز المشروع بآليات متقدمة للأداء والتسليم، بما في ذلك محمل بيانات (Data Loader) للتجميع والتخزين المؤقت لمنع أنماط استعلام N+1. يدعم تسليم البيانات عالي الأداء من خلال بث الاستجابة التزايدي، واستجابات الاستعلام المؤجلة، وجلب البيانات المتوازي باستخدام الألياف (Fibers). بالإضافة إلى ذلك، يوفر دعماً أصلياً لاتفاقيات Relay، بما في ذلك مساعدين متخصصين للاتصالات وتحديد الكائنات. تغطي المكتبة مساحة واسعة من إدارة واجهة برمجة التطبيقات، وتتميز بالتحكم الدقيق في الوصول، وإصدار المخطط للحفاظ على التوافق مع الإصدارات السابقة، والتحديثات في الوقت الفعلي عبر الاشتراكات. كما تتضمن أدوات إدارة حركة المرور لحماية موارد الخادم، مثل تحديد تعقيد الاستعلام وتحديد معدل الطلب. يتم دعم التطوير وقابلية المراقبة من خلال أدوات تحليل AST، وتتبع التنفيذ، وأدوات اختبار متخصصة للتحقق من التحميل المجمع.
Attaches structured error responses containing machine-readable codes and custom metadata to the response JSON.
Goravel هو هيكل تطوير متكامل وإطار عمل لبناء تطبيقات الويب، وREST APIs، وخدمات gRPC باستخدام لغة البرمجة Go. ينفذ معمارية النموذج-العرض-المتحكم (MVC) ويوفر مجموعة أدوات شاملة لخوادم وعملاء استدعاء الإجراءات البعيدة (RPC) عالية الأداء. يتميز إطار العمل بنظامه البيئي المتكامل الواسع، والذي يتضمن أداة تعيين كائنات علائقية (ORM) سلسة لإدارة قواعد البيانات ومجموعة أدوات واجهة سطر أوامر مخصصة لأتمتة الإدارة وهيكلة المشاريع. يتميز بتجريد الخدمة القائم على المحركات (Driver-based) الذي يسمح للمطورين بتبديل التخزين، وذاكرة التخزين المؤقت، وخلفيات الجلسات دون تغيير منطق التطبيق. تغطي المنصة سطحاً واسعاً من قدرات التطبيقات، بما في ذلك معالجة المهام غير المتزامنة مع الطوابير الموزعة، وإدارة الهوية الآمنة عبر المصادقة القائمة على الرموز (Tokens)، وطبقة أمان قوية مع التشفير والتحكم في الوصول. كما توفر أدوات لتوطين المحتوى، وعرض القوالب، وبنية تحتية للاختبار المؤتمت مع محاكاة التبعيات.
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.