You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you provide the reproduce repository? You would see that we could define the path for api routes.
constspec: Record<string,any>=createSwaggerSpec({apiFolder: 'pages/api'// or 'src/pages/api', ==> You could change the folder heredefinition: {openapi: '3.0.0',info: {title: 'Next Swagger API Example',version: '1.0',},},});
Repository owner
locked and limited conversation to collaborators
Oct 18, 2023
Bug descrition
#When default root path is set to src
Swagger does not load the api routes even when annotated but when i move my code out of src directory then swagger does display
Reproduction
use src directory as main file directory for the apis
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: