yahehe / Nancy.Swagger

Nancy plugin for generated API documentation in Swagger format.
MIT License
133 stars 60 forks source link

Content-type of swagger.json should be application/json #174

Open provegard opened 5 years ago

provegard commented 5 years ago

Expected Behavior

Content-type for the swagger.json endpoint is application/json (possibly with charset).

Actual Behavior

Content-type for the swagger.json endpoint is text/plain; charset=utf-8.

Steps to Reproduce the Problem

  1. Build a small application that uses Nancy.Swagger
  2. Open DevTools in Chrome (or similar) and enable network recording
  3. Visit the swagger.json endpoint

Specifications