-
-
Notifications
You must be signed in to change notification settings - Fork 35
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger Specs Never Read #898
Comments
Hi @jersmart Did you try the example apps on this repo yet? |
The example apps worked for me. The biggest difference between the example apps and what's generated by create-next-app is nesting pages etc into the 'src' directory. However, when I try to change
I get the following error:
|
I found the root cause of this issue. I have directories in the api folder that have a period in them that simulate retrieval of a file but actually build them dynamically (fwiw, not my design decision.) The error is accurate; it's trying to read a directory like its a file because it looks like one. This error is reproducible in the example:
|
This appears to be due to a bug in the swagger-jsdoc repo: Surnet/swagger-jsdoc#388 |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Describe the bug
The api swagger docs are never read, so there is no api information generated. To recreate the repro:
I tried to identify the issue by piecemealing elements from the next 13/14 examples, but couldn't identify the root cause.
Reproduction
https://github.com/jersmart/next-swagger-doc-repro
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: