4 مستودعات
Returning structured error codes from validation failures so callers can programmatically handle specific issues.
Distinct from Validation Error Customizations: Distinct from Validation Error Customizations: focuses on returning structured error codes for programmatic handling, not on customizing error messages.
Explore 4 awesome GitHub repositories matching software engineering & architecture · Machine-Readable Error Codes. Refine with filters or upvote what's useful.
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.
Twirp هو إطار عمل RPC لـ Protocol Buffers مصمم لتنفيذ اتصالات الخدمات المصغرة الموزعة والآمنة من حيث النوع عبر HTTP. يعمل كإطار عمل لاتصالات الخدمات المصغرة ومولد كود API ينتج كعوب عميل (Client stubs) وواجهات خادم مكتوبة بقوة من تعريفات المخطط للقضاء على الكود المتكرر للشبكة يدوياً. يضمن إطار العمل التوافق مع بنية الويب التحتية الحالية من خلال تنفيذ استدعاءات الإجراءات البعيدة عبر نقل HTTP القياسي. يستخدم العقود القائمة على المخطط كمصدر وحيد للحقيقة لتمكين التشغيل البيني عبر اللغات وفصل منطق العمل عن نقل الشبكة. يغطي النظام العديد من مجالات القدرات الأساسية، بما في ذلك التوجيه القائم على الواجهة، وتسلسل البيانات متعدد التنسيقات الذي يدعم كلاً من JSON والثنائي، والبرمجيات الوسيطة لدورة حياة الطلب للمخاوف المتقاطعة. كما يوفر نظام تعيين أخطاء قياسياً لترجمة فشل الخدمة إلى رموز قابلة للقراءة آلياً ويتضمن أدوات للتحقق من توافق العميل.
Sends structured error responses containing both machine-readable codes and human-readable descriptive messages.
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.
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.