Forum Discussion

okmiddy's avatar
okmiddy
New Member
9 months ago

Empty Swagger.Json in Production Environment

When running a project locally, swagger generates everything as expected - example of my swagger.json file when generated from localhost:

However, when visiting the API in a production/master environment, swagger.json is completely empty when downloading - all my documentation seems to not be included:

I've checked and made sure that local and live builds both have and use the same code, have the same packages installed, and include the same references to include XML. Unsure why there would be a difference between running this locally vs. live. For reference this is documented through Swashbuckle for ASP.Net core, using Redoc.

 

No RepliesBe the first to reply