question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Swagger broken with @nestjs/swagger@next

See original GitHub issue

Hi.

This is more an information than an issue.

I tried to upgrade to @nestjs/swagger@next (because of this issue : https://github.com/nestjs/swagger/issues/63) but it seems to be a refactor that breaks a lot of things. At least, ApiModelProperty has been renamed to ApiProperty so I have this error :

.../node_modules/@nestjsx/crud/lib/crud/validation.helper.js:23
            ApiModelProperty(options)(target, propertyKey);
            ^
TypeError: ApiModelProperty is not a function

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
Dilukacommented, Dec 5, 2019
5reactions
OffS3ccommented, Dec 10, 2019

Hi I’m facing the same issue with swagger 4.0.9 and crud 4.2.0. It’s still not fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using 5.0.0 @nestjs/swagger would break the nest app #7499
Bug Report Hi, I just started to use Nest.js + Swagger and not sure if this is a bug. I follow the docs...
Read more >
node.js - Swagger UI route giving 404 Not found error - NestJs ...
But, when I deployed the nestjs build on server (AWS with Apache server), the same route is not working. In nestjs "main.ts" file,...
Read more >
@nestjs/swagger - npm
Nest - modern, fast, powerful node.js web framework (@swagger). Latest version: 6.1.4, last published: 19 days ago.
Read more >
A Guide to NestJS Swagger Configuration - Bits and Pieces
In this blog, we are doing a Swagger Configuration with NestJS, and we will learn how ... const app = await NestFactory.create(AppModule);
Read more >
Swagger API Documentation Tips and Tricks in NestJS - Trilon
If you're using NestJS, there is a wonderful @nestjs/swagger module in the NestJS ecosystem that will help us a lot here!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found