UNPKG

@samchon/openapi

Version:

Universal OpenAPI to LLM function calling schemas. Transform any Swagger/OpenAPI document into type-safe schemas for OpenAI, Claude, Qwen, and more.

16 lines (15 loc) 464 B
import { OpenApi } from "../../OpenApi"; import { IValidation } from "../../structures/IValidation"; export interface IOpenApiValidatorContext<Schema extends OpenApi.IJsonSchema> { components: OpenApi.IComponents; schema: Schema; value: unknown; path: string; report: (error: IValidation.IError & { exceptionable: boolean; }) => false; exceptionable: boolean; expected: string; equals: boolean; required: boolean; }