Skip to content

OpenAPI incorrectly generated route for middleware, creating an all blank api #3989

@ITsPro-CN

Description

@ITsPro-CN

Environment

Nuxt 4.3.0
Nitropack 2.13.1

Reproduction

Enable OpenAPI, and you will see a blank api in swagger.
By using defineRouteMeta, I can confirm it was caused by middleware.
"x-hidden" property doesnot work.

Describe the bug

Image

Additional context

Pls provide "x-hidden" or other property to hide api, or ignore the middlewares when generating.

Logs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions