Closed necrolingus closed 1 year ago
Forgot to add the example. Here is what my api-docs URL look like:
And here is the schema:
I just noticed even if I delete the schema from my code and restart my server, api-docs still render correctly and still shows the old schema.
I cleared browser cache and also used a separate browser to rule out browser caching, but in all instances the old schema still shows.
Found my issue. I backed up my original JS file and it caused the original schema to be re-loaded. Renaming/removing the extension sorted it out.
Good day
I am not sure if this is a swagger-ui-express issue but my schema never updates. Even if I completely delete the schema from my code and restart the Node Express server, the schema still renders in the api-docs, albeit the old schema. If I add or modify any functions, for example, I add or remove a DELETE or PUT, that updates perfectly in the api-docs. Right now, I just start the server up with "node index.js" and I do not cache anything.
I am using swagger-ui-express@4.6.2 and Node.js v18.16.0
Here is my schema
And here is my index.js file:
Here is my full bookRoutes.js file:
If you need anything else please let me know.
Thank you