18 Repos
Verifying that received API responses adhere to the structures defined in a remote specification.
Distinct from Client-Side Input Validators: Focuses on validating incoming API data against a schema rather than validating user input fields before submission.
Explore 18 awesome GitHub repositories matching web development · Schema-Based Response Validation. Refine with filters or upvote what's useful.
🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API
Validates JSON response bodies against Standard Schema libraries like Zod, throwing an error on mismatch.
Spring AI is an application framework for Java that provides a portable, fluent API for integrating AI models, tools, and vector stores into applications. It wraps multiple AI providers behind a common interface, allowing developers to switch between chat, embedding, image, and speech models without changing application code. The framework includes a chainable chat client API similar to WebClient or RestClient, supports both synchronous and streaming interactions, and offers structured output conversion that transforms unstructured AI responses into strongly-typed Java objects. The framework
Converts AI model responses directly into Plain Old Java Objects for type-safe downstream processing.
openapi-typescript is an OpenAPI TypeScript type generator and schema transformer. It converts JSON or YAML OpenAPI specification files into static TypeScript type definitions to provide end-to-end API type safety. The tool functions as a static type generator that transforms external API definitions into interfaces and types. It focuses on zero-runtime type enforcement, ensuring that data consistency is maintained via the TypeScript type system without adding overhead to production bundles. The project covers API type safety and schema conversion, facilitating the validation of request bodi
Verifies that API responses and mock data adhere to the structures defined in the OpenAPI document.
Higress is an AI API gateway and cloud-native traffic manager that functions as a Kubernetes ingress controller. It provides a centralized system for routing, securing, and optimizing traffic directed toward large language models, AI agents, and microservice architectures. The project distinguishes itself through deep AI orchestration, including the ability to host and manage Model Context Protocol servers that transform REST APIs into tools for AI agents. It features specialized AI infrastructure for model request proxying, protocol translation across multiple providers, and semantic-based c
Formats non-streaming AI outputs into valid JSON and validates them against defined schemas.
OpenUI ist ein Framework für die generative UI-Entwicklung, das natürlichsprachliche Beschreibungen mithilfe von Large Language Models in strukturierte, interaktive Benutzeroberflächenkomponenten umwandelt. Es ermöglicht die Echtzeit-Transformation von Text in funktionale Prototypen wie Diagramme, Tabellen, Formulare und Karten. Das Projekt zeichnet sich durch ein schema-gesteuertes Orchestrierungssystem aus, das typisierte UI-Primitive und JSON-Schemas verwendet, um die Modellausgabe einzuschränken und sicherzustellen, dass generierte Interfaces spezifische Komponentenbibliotheken einhalten. Es verfügt über einen Streaming-Parser, der ein progressives Rendering von Komponenten ermöglicht und Interface-Elemente schrittweise anzeigt, sobald Token eintreffen, anstatt auf eine vollständige Antwort zu warten. Das System deckt breite Funktionen ab, einschließlich KI-Response-Streaming über OpenAI-kompatible Adapter, Chat-Statusmanagement für Konversations-Threads und die automatisierte Generierung von System-Prompts. Es enthält zudem Tools zur Umwandlung strukturierter Komponentenbäume in statisches HTML für den E-Mail-Export sowie ein Command-Line-Interface für das Projekt-Scaffolding. Ein eingebetteter UI-Renderer wird bereitgestellt, um Interfaces in Umgebungen ohne traditionelle Build-Pipeline anzuzeigen.
Constrains AI model output to a predefined set of components and typed contracts to ensure valid rendering.
Forgecode is an AI agent orchestrator, shell integration tool, and terminal-based pair programmer. It enables the deployment of specialized AI roles for research, planning, and implementation, while providing a semantic code search tool to index project files for meaning-based retrieval. The system integrates as a Model Context Protocol client to extend AI capabilities via external servers and supports multi-provider model orchestration to switch between different large language model APIs. It transforms natural language into functional shell commands and allows for the execution of AI prompt
Measures model accuracy by comparing AI-generated command outputs against expected patterns using regular expressions.
Rest-assured is a Java-based REST API testing framework and HTTP client library designed for automating web service tests. It provides a fluent domain-specific language and assertion library to send HTTP requests and validate response metadata, including status codes, headers, cookies, and bodies. The framework is distinguished by a method-chaining DSL that creates readable specifications for API interactions. It features a filter-based request interception pipeline, object-mapping serialization for converting Java objects to JSON or XML, and a path-based parsing system to isolate specific fi
Verifies that API response bodies adhere to predefined JSON or XML structural schemas.
Guardrails is a Python SDK that wraps calls to large language models with configurable validation pipelines, corrective actions, and structured output generation. It provides a unified API layer that connects to over 100 language models, applying consistent validation, streaming, and error-handling across providers. The framework validates and corrects model responses against safety and quality rules, detecting and mitigating risks in both inputs and outputs using pre-built and custom validators. The project distinguishes itself through a validator-pipeline architecture that sequentially appl
Applies structural, type, and quality checks to model responses, enforcing rules like competitor or toxicity filters.
Orval is an OpenAPI-to-TypeScript code generator that produces fully typed API clients, data-fetching hooks, mock data, validation schemas, and server handlers from OpenAPI or Swagger specifications. It reads any YAML or JSON API specification and generates TypeScript interfaces, HTTP request functions, and framework-specific integration code that ensures compile-time correctness for all API calls. The project distinguishes itself by generating production-ready data-fetching hooks for React Query, Vue Query, Svelte Query, Solid Query, Angular, and SWR, complete with automatic cache invalidati
Validates API responses against generated Zod schemas at runtime to catch data mismatches.
PartyKit is a serverless WebSocket backend platform for building real-time multiplayer applications. It provides a globally distributed edge computing runtime that runs stateful server code close to users, with automatic scaling and hibernation for idle rooms. The platform handles WebSocket connections, HTTP requests, and durable storage without requiring infrastructure management, and includes a client and server SDK with hooks, storage, and Yjs integration for building collaborative features. The platform distinguishes itself through per-room isolation using Durable Objects, where each uniq
Uses the same schema on the client side to verify that server responses conform to the expected format.
openai-java ist eine Java-Client-Bibliothek und ein SDK, das entwickelt wurde, um OpenAI-Dienste in Java-Anwendungen zu integrieren. Es fungiert als programmatischer Wrapper für Endpunkte von Large Language Models und ermöglicht die Implementierung generativer KI-Funktionen wie Chat-Completions, Text-Embeddings und die Orchestrierung von KI-Agenten. Die Bibliothek unterstützt eine breite Palette multimodaler Aufgaben, einschließlich der Generierung und Bearbeitung von Bildern sowie der Audiotranskription und -übersetzung. Sie bietet spezialisierte Tools für das Modelltraining und Fine-Tuning, wodurch Nutzer Datensätze hochladen können, um die Modellleistung in spezifischen Domänen zu verbessern. Zudem enthält sie Funktionen für die Ausführung benutzerdefinierter Funktionen und Content-Moderation, um Ein- und Ausgaben anhand von Sicherheitsrichtlinien zu filtern. Das SDK verwendet ein Builder-Pattern für die Request-Konstruktion und mappt API-Ressourcen auf stark typisierte Java-Klassen. Es unterstützt sowohl synchrone Request-Response-Zyklen als auch die inkrementelle Datenbereitstellung mittels Server-Sent-Events für Echtzeit-Response-Streaming.
Maps API responses directly into strongly typed Java objects for compile-time type safety.
Die WordPress REST API ist eine Webschnittstelle und eine JSON-basierte Content-API, die das Abrufen und Ändern von Website-Inhalten, Benutzern und Metadaten über Standard-HTTP-Methoden ermöglicht. Sie fungiert als Headless-CMS-Schnittstelle, die das Content-Management vom Frontend entkoppelt, indem sie Website-Daten über einen programmierbaren RESTful-Controller bereitstellt. Das System zeichnet sich durch seine hypermediagesteuerte Erkennung und JSON-Schema-basierte Validierung aus, die es Clients ermöglichen, Ressourcen programmatisch zu lokalisieren und einen vorhersagbaren Datenaustausch zu gewährleisten. Es nutzt eine Namespace-basierte Endpunktregistrierung zur Organisation von Routen und unterstützt eine flexible Authentifizierungsschicht, einschließlich Anwendungspasswörtern, Session-Cookies und Identitätsstandards von Drittanbietern. Die API deckt ein breites Spektrum an Ressourcenmanagement-Funktionen ab, einschließlich der Handhabung von Beiträgen, Seiten, Medien und blockbasierten Inhalten. Sie bietet umfassende Dienstprogramme für das Response-Management, wie Ressourcen-Embedding, Paginierung und Feldfilterung, sowie Tools zur Verwaltung von Inhaltsrevisionen und der Website-Administration. Für die Abstraktion von Netzwerkanfragen in hochgradig programmierbare Schnittstellen werden sprachspezifische SDKs unterstützt.
Specifies data format, field types, and descriptions for responses to ensure clients understand the structure.
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
Enables the definition of reusable validation rules with custom labels to maintain consistency across projects.
docetl is an AI-powered document ETL tool and map-reduce orchestrator designed to transform large collections of unstructured documents into structured, queryable tables using language models. It provides a declarative pipeline framework for extracting, cleaning, and transforming data from sources such as PDFs and text files into predefined schemas. The project distinguishes itself through a semantic data integration suite that enables joining datasets and resolving duplicate entities based on embedding-based similarity. It includes an interactive prompt playground for developing and optimizi
Implements deterministic checks and refinement loops to correct errors and ensure LLM outputs comply with defined schemas.
FalkorDB is a high-performance graph database management system and vector graph database. It serves as a knowledge graph construction tool and a GraphRAG knowledge store, integrating structured property graphs with vector search to provide grounded context for large language models. The engine is designed as a multi-tenant graph engine, capable of hosting thousands of isolated datasets within a single instance. The system distinguishes itself by using linear algebra for query execution, treating relationship tensors as matrix multiplications to achieve low-latency multi-hop traversals. It ut
Cross-references generated text against structured graph data to detect and correct factual inconsistencies.
LLM Guard is a security firewall and guardrail framework designed to scan and sanitize inputs and outputs for large language models. It functions as a proxy gateway and security layer to block prompt injections, toxicity, and sensitive data leakage while ensuring that model interactions remain compliant with organizational policies. The system distinguishes itself through a modular scanner pipeline that utilizes local model orchestration to eliminate external network dependencies. It supports real-time security filtering via streaming chunk analysis and implements a fail-fast execution model
Screens AI-generated content for bias, hallucinations, and malicious URLs to ensure safety and consistency.
Dry-validation ist eine Ruby-Bibliothek, die für die Definition typsicherer Schemata und komplexer Validierungsregeln zur Überprüfung und Bereinigung von Eingabedatenstrukturen entwickelt wurde. Sie bietet ein formales Framework zur Konstruktion modularer Validierungslogik und stellt sicher, dass eingehende Informationen spezifische Geschäftsanforderungen und Datenformate erfüllen, bevor sie von einer Anwendung verarbeitet werden. Die Bibliothek nutzt eine domänenspezifische Sprache (DSL), um Validierungsregeln zu deklarieren, die dann in ausführbare Objekte geparst werden. Sie zeichnet sich durch ein Makro-gesteuertes System aus, das gängige Validierungslogik in wiederverwendbare Shortcuts bündelt, sowie durch ein rekursives Kompositionsmodell, das es Entwicklern ermöglicht, Validierungsobjekte zu verschachteln, um komplexe, hierarchische Strukturen aufzubauen. Dieser Ansatz ermöglicht die Erstellung konsistenter, modularer Logik, die Codeduplizierung in großen Anwendungen verhindert. Über die Kern-Schema-Definition hinaus enthält die Bibliothek eine Typ-Coercion-Pipeline, die rohe Eingaben in erwartete Formate umwandelt, sowie ein strukturiertes Fehleraggregationssystem, das Fehler auf spezifische Eingabepfade abbildet. Sie unterstützt Konfigurations-Hooks für die Integration externer Abhängigkeiten und bietet Tools zur Datenbereinigung, was sie für die Durchsetzung von Standards bei eingehenden API-Requests und komplexen Datenobjekten geeignet macht.
Provides shared validation shortcuts that bundle common rules together for consistent application across the codebase.
This project is a command-line tool that automates the creation of type-safe TypeScript HTTP clients directly from OpenAPI specifications. By transforming service definitions into structured source code, it ensures end-to-end type synchronization and enforces runtime data integrity across network boundaries. The generator distinguishes itself by mapping OpenAPI data structures into Zod validation schemas, allowing for consistent schema-driven type mapping and response validation. It supports deduplicated source synthesis to minimize redundancy in the generated output and provides template cus
Validates API response bodies against generated Zod schemas at runtime to catch data shape mismatches.