Setu-TS
    Preparing search index...

    Interface IOpenApiService

    Service for generating and retrieving OpenAPI 3.1 specifications.

    0.1.0

    interface IOpenApiService {
        addSchema(name: string, schema: unknown): void;
        getSpec(): Readonly<Record<string, unknown>>;
    }

    Implemented by

    Index
    • Returns the generated OpenAPI 3.1 document.

      Builds the spec lazily on first call and caches it for subsequent calls.

      Returns Readonly<Record<string, unknown>>

      The complete OpenAPI document as a readonly record