GithubHelp home page GithubHelp logo

Comments (7)

kasir-barati avatar kasir-barati commented on July 30, 2024

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.

kasir-barati avatar kasir-barati commented on July 30, 2024

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.

kasir-barati avatar kasir-barati commented on July 30, 2024

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.

kasir-barati avatar kasir-barati commented on July 30, 2024

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 :/

image
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.

kasir-barati avatar kasir-barati commented on July 30, 2024

But before adding example it was removed completely :/.

from swagger.

kasir-barati avatar kasir-barati commented on July 30, 2024

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.

kasir-barati avatar kasir-barati commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.