Libraries
    Preparing search index...
    • Returns a server middleware that serves the OpenAPI spec as JSON at the configured path (default: /openapi.json).

      The spec is lazily generated on first request and cached.

      Parameters

      Returns (context: RequestContext, next: () => Promise<void>) => Promise<void>