DB agnostic framework to build auto-documented REST APIs with Flask and marshmallow
Bug fixes:
Response
object. (:pr:178
).
Thanks :user:@marksantcroos
for reporting.Features:
OPENAPI_SWAGGER_UI_CONFIG
to allow passing
a dict of Swagger UI configuration parameters. Remove
OPENAPI_SWAGGER_UI_SUPPORTED_SUBMIT_METHODS
: the same can be achieved by
passing supportedSubmitMethods
in OPENAPI_SWAGGER_UI_CONFIG
. Remove
layout
and deepLinking
default overrides. Those can be passed in
OPENAPI_SWAGGER_UI_CONFIG
as well. (:pr:171
).
Thanks :user:joshua-harrison-2011
for the pull-request.Features:
Backwards-incompatible: Make API title and version mandatory parameters.
Before this change, the version would default to "1"
and the title would
be app.name
. Those two parameters can be passed at init or as application
configuration parameters TITLE
and API_VERSION
. Also rename
OpenAPIVersionNotSpecified
as MissingAPIParameterError
. (:pr:169
).
Thanks :user:playpauseandstop
for the help on this.
Backwards-incompatible: Rework pagination documentation to allow more
customization. This change will break code overriding
PAGINATION_HEADER_DOC
, _make_pagination_header
or
_prepare_pagination_doc
(:pr:153
).
Features:
flask openapi print
and flask openapi write
commands (:pr:154
).Other changes:
Bug fixes:
phrase
, not name
, in response description (:pr:158
).Bug fixes:
147
)
Thanks :user:DrChrisLevy
for reporting.Features:
132
).Other changes:
132
).Bug fixes:
HTTPStatus
name
rather than phrase
to name error components. This fixes an issue due to phrase
containing
spaces not being URL-encoded. Also change DefaultError
into
DEFAULT_ERROR
for consistency. This change will break code referencing
one of those errors. (:issue:136
).
Thanks :user:michelle-avery
for reporting.Other changes:
OPENAPI_REDOC_VERSION
and
OPENAPI_SWAGGER_UI_VERSION
. Remove hardcoded CDNs. Users should modify
their code to use OPENAPI_REDOC_URL
and OPENAPI_SWAGGER_UI_URL
instead. The docs provide examples of CDN URLs. (:issue:134
).Bug fixes:
utils.deepupdate
for the case where the original value is a string or
integer and the updated value is a dict
(:issue:129
).
Thanks :user:maj-skymedia
for reporting.Bug fixes:
'X-Pagination'
headers: the correct header and an empty one.
(:pr:128
)