@suluk/openapi-compat - v0.1.3
    Preparing search index...

    Interface DowngradeResult

    @suluk/openapi-compat — convert between the OpenAPI v4 "Suluk" candidate and OpenAPI 3.1.

    downgrade(v4) → 3.1 is the lever for Scalar & Swagger UI (they consume 3.x). upgrade(3.1) → v4 is the reverse. The pair is lossless for documents that fit 3.1's expressivity; where v4 exceeds 3.1 (notably multiple requests per method on one path, C003), downgrade() reports it in diagnostics rather than losing it silently. Schema Objects are shared verbatim (both are JSON Schema 2020-12). CANDIDATE tooling.

    interface DowngradeResult {
        document: Record<string, unknown>;
        diagnostics: Diagnostic[];
    }
    Index

    Properties

    document: Record<string, unknown>

    A valid OpenAPI 3.1 document (validate with validate31).

    diagnostics: Diagnostic[]

    Everything that could not be represented losslessly — the honest audit trail.