Documentation
    Preparing search index...

    Namespace OpenApiValidator

    OpenAPI JSON Schema validator.

    OpenApiValidator validates runtime data against OpenApi.IJsonSchema definitions. Returns IValidation with detailed error paths and expected types.

    Primary use case: Validating LLM-generated function call arguments. LLMs frequently make type errors (e.g., "123" instead of 123). Use the validation errors to provide feedback and retry.

    Functions:

    • create: Create reusable validator function from schema
    • validate: One-shot validation with inline schema

    Set equals: true to reject objects with extra properties (strict mode).

    Jeongho Nam - https://github.com/samchon

    Functions

    create
    validate