Skip to content

CLI plugin is not working #2018

@ragokan

Description

@ragokan

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

The Swagger CLI plugin does not provide types without decorators.

image

As you can see here, I implemented it according to the docs.

image

image

At the time I started using this plugin, I had this problem only for minutes, after deleting node_modules/lock file and installing packages then the app, it was magically fixed. But sadly this time it is not fixed. I also tried downgrading versions, trying Fastify Swagger instead of Express, nothing works.

I also tried running nest build, etc. Sadly nothing worked.

Minimum reproduction code

https://github.com/ragokan/ratata

Steps to reproduce

  1. npm install
  2. npm run db:sync
  3. npm run dev
  4. Go to http://127.0.0.1:8000/api-docs

Expected behavior

I expect to see the types on Swagger UI.

Package version

6.0.5

NestJS version

9.0.8

Node.js version

18.7.0

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

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