Comments (7)
Right now - trying to fix this issue - I'll upgrade packages version to see if that can help. Although I am skeptical about it.
from swagger.
Faced tons of dependency conflicts :/.
code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: you-say@0.0.1
npm ERR! Found: eslint@9.2.0
npm ERR! node_modules/eslint
npm ERR! dev eslint@"9.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^8.56.0" from @typescript-eslint/parser@7.8.0
npm ERR! node_modules/@typescript-eslint/parser
npm ERR! dev @typescript-eslint/parser@"7.8.0" from the root project
npm ERR! peer @typescript-eslint/parser@"^6.13.2 || ^7.0.0" from @nx/eslint-plugin@19.0.2
npm ERR! node_modules/@nx/eslint-plugin
npm ERR! dev @nx/eslint-plugin@"19.0.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /home/kasir/.npm/_logs/2024-05-10T11_04_49_215Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: /home/kasir/.npm/_logs/2024-05-10T11_04_49_215Z-debug-0.log
Probably not the smartest move I could make 😅.
Also it did not change @nestjs/swagger
version but did change some other packages. Still evaluating it. If it did not work, will undo changes since they are really big and I am in the middle of something 🙂.
from swagger.
It broke my Dockerfile
like I suspected. So for now I am back to normal -- I reverted package.json
and package-lock.json
.
from swagger.
That's weird, I just noticed that according to Git it was part of the doc but for some reason it was removed and when I added new prop to @ApiPorperty
decorator it just recreated it in openApi.json file :/
Is it really confusing since here I am creating the openApi.json
file and I cannot shake the feeling that something is not right with @nestjs/swagger
. I mean this helper function utilizes createSwaggerConfiguration
and there we are only using DocumentBuilder
to build the open API specification 😖.
Not sure what is wrong, but all of that aside we still have this behavior of swagger missing extended props.
from swagger.
But before adding example
it was removed completely :/.
from swagger.
Here is my broken pipeline: https://github.com/kasir-barati/you-say/actions/runs/9023506806/job/24795454676
Not sure why but it is clear that the integration test failed due to the fact that openApi.json
had not limit
and page
this time around while a few weeks or days ago it was passing.
from swagger.
Feel free to close this issue if it did not happen to you. It happened in my local env and pipeline once but I am not sure why and how adding a simple example
kasir-barati/you-say@b902305 fixed the issue.
from swagger.
Related Issues (20)
- @ApiProperty - Include default value when using `enumName` HOT 2
- properties decorated with `@ApiHideProperty()` are being displayed in swagger UI HOT 1
- Detect schema in monorepo HOT 1
- Swagger decorator @ApiHeader is not including header on request HOT 2
- Introspected comment on controller class makes top-level comment the operation description then overrides it with TsDoc "remarks" directive HOT 1
- @ApiProperty() enum can display keys in the UI instead of just values. HOT 1
- CLI plugin does not appear to be working at all with swc? HOT 1
- 'name' is specified more than once, so this usage will be overwritten. HOT 1
- Compiler error "ReferenceError: require is not defined in ES module scope, you can use import instead" HOT 2
- NestJS 10 is incorrectly parsing the jsdocs comments to generate swagger docs
- Monorepo support for the Swagger module HOT 1
- File upload only displays the string "string($binary)" instead of upload button HOT 1
- circular dependency has been detected with swagger plugin HOT 2
- Oauth2 Redirect url not working correctly without trailing path HOT 1
- The fields of DTO do not appear in Swagger UI when using CLI. HOT 1
- Wrong swagger generation for @Query with array of objects HOT 4
- Custom `type` is not retained as type, but rewritten as `allOf: - $ref: ...` breaking `nullable: true` spec in `@ApiProperty` HOT 8
- Setting the name attribute results in a schema change HOT 2
- CLI Plugin cannot generate descriptions for endpoint HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swagger.