Skip to content
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.json is generated with invalid JSON (extra comma) #1873

Open
ns-mglaske opened this issue Aug 20, 2024 · 0 comments
Open

swagger.json is generated with invalid JSON (extra comma) #1873

ns-mglaske opened this issue Aug 20, 2024 · 0 comments

Comments

@ns-mglaske
Copy link

Describe the bug
The generated swagger.json output has an additional comma after the info.version key

   1 {
   2     "swagger": "2.0",
   3     "info": {
   4         "description": "Environment status",
   5         "title": "Service Status API",
   6         "contact": {
   7             "name": "Mike Glaske",
   8             "email": "[email protected]"
   9         },
  10         "version": "v0.1.0-0-g53f9fe3",   <- here
  11     },

To Reproduce
Steps to reproduce the behavior:

  1. Include version information
  2. Generate JSON swagger output

Expected behavior

   1 {
   2     "swagger": "2.0",
   3     "info": {
   4         "description": "Environment status",
   5         "title": "Service Status API",
   6         "contact": {
   7             "name": "Mike Glaske",
   8             "email": "[email protected]"
   9         },
  10         "version": "v0.1.0-0-g53f9fe3"
  11     },

A clear and concise description of what you expected to happen.

Your swag version
v1.16.3

Your go version
v1.22.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant