Interface AddFromSpecificationOpts

Options for adding the routes from a oas specification.

AddFromSpecificationOpts

interface AddFromSpecificationOpts {
    controllerBasePath?: string;
    fallbackControllerFunctionToPath?: boolean;
    fallbackControllerToIndex?: boolean;
    mapControllerBy?: mapControllerBy;
    provideStubs?: boolean;
    validateSpecification?: boolean;
}

Properties

controllerBasePath?: string

The base path in which the controllers can be found.

fallbackControllerFunctionToPath?: boolean

Should the controller function name fallback to method + path (method in lower and path in PascalCase)?

true
fallbackControllerToIndex?: boolean

Should the index module (index.ts or index.js) be used as fallback?

mapControllerBy?: mapControllerBy

Specifies how to map the controller.

provideStubs?: boolean

Specifies if stubs should be provided.

validateSpecification?: boolean

Specifies if the oas-validator should be used.