0.15.0
Features:
- Add parameters to pass examples and headers in
Blueprint.response
decorator (:pr:63
). - Add parameters to pass examples for
requestBody
in OpenAPI v3 in
Blueprint.arguments
decorator (:pr:68
). - Support status codes expressed as
HTTPStatus
inBlueprint.response
decorator (:issue:60
).
Thanks :user:Regzand
for reporting.
Other changes:
- Bump minimum apispec version to 1.3.2.
- Bump minimum werkzeug version to 0.15. With 0.14.x versions,
412
responses
are returned with no content. - Backwards-incompatible: When using
Blueprint.doc
decorator to provide
additional documentation to the response described in the
Blueprint.response
decorator, the user must use the same format (str
,
int
orHTTPStatus
) to express the status code in both decorators.
This is a side-effect of (:issue:60
). Now that headers and examples can
be described inBlueprint.response
, this should not be a common use case.