@suluk/scalar - v0.8.0
    Preparing search index...

    Function enrichedV4

    • Enrich a v4 document with the suluk facets (badges + detail + intro) WITHOUT downgrading — for the forked Scalar that ingests v4 NATIVELY. Never mutates doc (JSON-clone first). The output is fed to Scalar's content as-is.

      Parameters

      • doc: OpenAPIv4Document
      • opts: { facetBadges?: boolean } = {}

      Returns { spec: Record<string, unknown> }