Skip to content

openAPISchema Cache Never Refreshes Due to totalRoutes Always Being 2 #331

@Necrelox

Description

@Necrelox

Hello, I hope you're doing well. I’m reporting a blocking issue for developers using Deferred Modules and Lazy Loaded Modules.

There is an issue in the openAPISchema function where totalRoutes is always equal to 2. Because of this, the condition:

if (totalRoutes === app.routes.length && cachedSchema)
    return cachedSchema

always evaluates to true (as long as cachedSchema is defined), which prevents the schema from being regenerated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions