alysivji / falcon-apispec

apispec plugin that generates OpenAPI specification (aka Swagger Docs) for Falcon web applications.
MIT License
44 stars 31 forks source link

Fix example code in README #13

Closed TheGhostHuCodes closed 5 years ago

TheGhostHuCodes commented 5 years ago

I was trying out the example code in the README, and I noticed that the swagger file was double generating a get: key when parsing the docstring from the on_get method, ie:

...
  get:
    get:
      description: Get a random pet
...

removing the get: in the docstring seems to cause the swagger file to be generated properly.