ergo / pyramid_apispec

Pyramid plugin for openapi spec generation (using ApiSpec)
BSD 3-Clause "New" or "Revised" License
23 stars 10 forks source link

Update README example and the demo app #25

Closed smsearcy closed 3 years ago

smsearcy commented 3 years ago

Updated the README to reflect some changes in apispec because when I first tried to set this up a while back I ran into issues. (Since it can be a moving target I did not the version at the time of this documentation in case that helps others.)

Updated the demo app because when I pasted the resulting openapi.json into https://editor.swagger.io I got the following errors:

Semantic error at paths./users.post.security.0
Security requirements must match a security definition
Jump to line 6

Structural error at paths./bar.get.parameters.0
should NOT have additional properties
additionalProperty: schema
Jump to line 32

Structural error at paths./bar.get.parameters.0
should have required property 'type'
missingProperty: type
Jump to line 32

Structural error at swagger
should be equal to one of the allowed values
allowedValues: 2.0
Jump to line 67

Fixes #16