pyeve / eve-swagger

Swagger extension for Eve-powered RESTful APIs
http://python-eve.org
Other
154 stars 43 forks source link

Example is not supported in Swagger 2.0 #75

Closed LaQuay closed 5 years ago

LaQuay commented 5 years ago

Hi, I am using eve-sqlalchemy as db-manager and the output generated by eve-swagger contains the example attribute inside parameters, which is not supported by Swagger 2.0.

And the output generated contains:

parameters:
  Mymodel:
    in: path
    name: alertId
    required: true
    description: ''
    example: ''
    type: integer

Any idea to avoid this? Thanks!

JoveYu commented 5 years ago

same problem