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

A space after the ### breaks the generation of swagger paths #176

Open
alvaroc1 opened this issue Aug 25, 2017 · 1 comment
Open

A space after the ### breaks the generation of swagger paths #176

alvaroc1 opened this issue Aug 25, 2017 · 1 comment

Comments

@alvaroc1
Copy link

Took me a long time to figure this one out:

### <- a single space here
#  summary: Get maintenance tasks
#  responses:
#    200:
#      description: success
#      schema:
#        type: array
#        items:
#          $ref: '#/definitions/com.rovitracker.entities.MaintenanceTask'
###
GET    /maintenanceTasks  @controllers.api.RepairApi.maintenanceTasks

Produces:

{
  "paths": {
    "/repairs/maintenanceTasks": {
      "get": {
         "operationId":"maintenanceTasks",
         "tags":["repairs"]
       }
     }
   },
   ...
}

Which is missing all of the custom data (summary, responses, etc).
Ideally the parser would ignore whitespace there. Removing the space fixed it.

Workaround: don't leave a space there

@Javakky-pxv
Copy link
Collaborator

@alvaroc1
Thank you!

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

2 participants