4 Repos
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 ist ein Protocol-Buffers-RPC-Framework, das für die Implementierung von typsicherer, verteilter Microservices-Kommunikation über HTTP entwickelt wurde. Es fungiert als Framework für die Microservices-Kommunikation und als API-Codegenerator, der stark typisierte Client-Stubs und Server-Interfaces aus Schemadefinitionen erstellt, um manuellen Netzwerk-Boilerplate-Code zu eliminieren. Das Framework stellt die Kompatibilität mit bestehender Web-Infrastruktur sicher, indem es Remote Procedure Calls über Standard-HTTP-Transport ausführt. Es verwendet schema-gesteuerte Verträge als Single Source of Truth, um sprachübergreifende Interoperabilität zu ermöglichen und Geschäftslogik vom Netzwerktransport zu entkoppeln. Das System deckt mehrere Kernbereiche ab, einschließlich interface-gesteuertem Routing, Daten-Serialisierung in mehreren Formaten (unterstützt sowohl JSON als auch Binärdaten) und Request-Lifecycle-Middleware für übergreifende Belange. Es bietet zudem ein standardisiertes Fehlermeldesystem, um Dienstfehler in maschinenlesbare Codes zu übersetzen, und enthält Tools zur Überprüfung der Client-Kompatibilität.
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 ist eine Ruby-Bibliothek zum Erstellen von GraphQL-APIs mit einem stark typisierten Schema und einer dedizierten Query-Execution-Engine. Sie bietet ein umfassendes Framework zum Mappen von Anwendungsobjekten auf ein formales Typsystem, was strukturiertes Datenabrufen durch definierte Resolver ermöglicht. Das Projekt zeichnet sich durch fortschrittliche Performance- und Bereitstellungsmechanismen aus, darunter einen Data Loader für Batching und Caching zur Vermeidung von N+1-Abfragemustern. Es unterstützt leistungsstarke Datenbereitstellung durch inkrementelles Response-Streaming, verzögerte Abfrageantworten und paralleles Datenabrufen mittels Fibers. Zudem bietet es native Unterstützung für Relay-Konventionen, einschließlich spezialisierter Helfer für Connections und Objektidentifikation. Die Bibliothek deckt ein breites Spektrum an API-Management ab, einschließlich fein abgestufter Zugriffskontrolle, Schema-Versionierung zur Wahrung der Abwärtskompatibilität und Echtzeit-Updates via Subscriptions. Sie enthält zudem Traffic-Management-Tools zum Schutz von Serverressourcen, wie z. B. die Begrenzung der Abfragekomplexität und Request-Rate-Limiting. Entwicklung und Observability werden durch AST-Analysewerkzeuge, Execution-Tracing und spezialisierte Test-Utilities zur Verifizierung von Batch-Loading unterstützt.
Attaches structured error responses containing machine-readable codes and custom metadata to the response JSON.