Documentation
    Preparing search index...

    Function SwaggerCustomizer

    • Swagger customization decorator.

      SwaggerCustomizer is a method decorator function which can used for customizing the swagger data with npx nestia swagger command. Furthermore, it is possible to add plugin properties starting with x- characters.

      In other words, this decorator function does not affect to the runtime, but only for the swagger data customization.

      Parameters

      Returns MethodDecorator

      Method decorator

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

      contracts/common.md#principled-implementation Each use appends the closure to an array of metadata owned by the method, created on first use, so several customizers on one method run in order.

      contracts/common.md#clear-and-simple-design One decorator function with one metadata list per method.

      contracts/common.md#prohibited-implementation-shortcuts It uses the reflect metadata API; the closure is the caller's.

      contracts/common.md#meaningful-documentation The comment documents that the closure receives the document, the operation, and lookup helpers.

      contracts/portability.md#os-neutral-implementation The callback and endpoint accessors edit an OpenAPI document; their path fields are HTTP routes rather than native file identities.