Comments (6)
Hi @mariohmol Thank you for filing the issue. Do you have a notation on your code? e.g:
/**
* @openapi
* /:
* get:
* description: Welcome to swagger-jsdoc!
* responses:
* 200:
* description: Returns a mysterious string.
*/
app.get('/', (req, res) => {
res.send('Hello World!');
});
If not, please try to follow the convention by https://github.com/Surnet/swagger-jsdoc
from next-swagger-doc.
Yes, the same we have in the Readme, so when I visited /api/doc I got the correct json response.
Seems that the fronend swagger was not getting the json from the correct url?
from next-swagger-doc.
Could you create a repository repository? Then I could take a look. I guess there is a typo (space/indention) on comment on your app. Thanks.
from next-swagger-doc.
but the json has been generated.. and using the same json I could make it work with pure swagger-js
from next-swagger-doc.
Sorry, I can't produce the issue so I will close this one. Thanks.
from next-swagger-doc.
Here is my example if you want to take a try.
mkdir test
npx degit jellydn/next-swagger-doc/example
yarn && yarn build && yarn start
from next-swagger-doc.
Related Issues (20)
- Module not found: Can't resolve '#apg-lite' HOT 1
- Issue with parameters and swcMinify HOT 2
- Example or Docs required to explain how to specify params?
- api doesn't load component on production HOT 9
- Compatibility issues with NodeJS 16+ (version 19.7.0 / 16.19.1) on Windows, Ubuntu, and Heroku
- `Argument of type 'Promise<typeof import("...@types/swagger-ui-react/index")>' is not assignable to parameter of type 'DynamicOptions<{ spec: any; }> | Loader<{ spec: any; }>'. HOT 1
- Authorize using Bearer or OAuth2 HOT 1
- How to manage multiple HTTP methods
- Theme | no light mode support ? HOT 1
- Next13 example project running issue HOT 4
- Swagger annotations $ref as string HOT 1
- Automated doc generation HOT 8
- Where to keep the schema.json file in next.js project?
- Not working on Next 13 HOT 1
- Issue when using different directory such as src HOT 1
- Swagger Specs Never Read HOT 4
- Empty paths in rendered JSON in Production (on Vercel) but not in Dev with NextJS 14 HOT 1
- README Documentation has a missing dependency HOT 2
- Error with yarn build with Next 14 HOT 3
- Error on build - Next.js 14 - TypeError: Class extends value undefined is not a constructor or null HOT 5
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 next-swagger-doc.