Releases: Cornices/cornice
Releases · Cornices/cornice
3.3.0
3.2.0
3.1.0
3.0.0
Breaking changes
Please refer to upgrading docs <https://cornice.readthedocs.io/en/stable/upgrading.html>
_ for detailed migration instructions.
acl
andtraverse
parameters are not supported anymore on services- Constructors of resource decorated classed must now be
__init__(self, request, context=None)
Enhancements
- Align Cornice with Pyramid ACL pattern: Dynamic ACLs based
on resource are now possible (#452, thanks @wjehenddher)
Bug fixes
2.4.1
2.4.0
2.3.0
Enhancements
- Add support for validation with specific JSON Content-Types
(i.e application/merge-patch+json). Thanks @gabisurita! - Add
X-Content-Type-Options: nosniff
headers to responses (fixes #102) - Add a
request.current_service
attribute (fixes #105)
Bug fixes
- Fix
cornice.cors.get_cors_preflight_view
to make it parse
Access-Control-Request-Headers
header correctly event if its value
contains zero number of white spaces between commas (#422, thanks @spoof!)
Internal changes
- Clean-up an inconsistency in
cornice.service.decorate_view()
function
whereacl
andfactory
were expected as view arguments (whereas
deprecated since 1.0)
2.2.0
2.1.0
Enhancements
Cornice.validators.colander_validator
and
cornice.validators.colander_body_validator
now accept colander
schema node instances. Previously only schema classes were
accepted. For some discussion see #412.
Deprecations
- Passing schema classes to
Cornice.validators.colander_validator
and
cornice.validators.colander_body_validator
is now deprecated.
(See above.)
Bug fixes
- To maintain consistency with cornice 1.2 as to the semantics of
location='path'
, changecornice.validators.extract_cstruct
so that it placesrequest.matchdict
(rather than
request.path
) intocstruct['path']
. (#411) - Fix
cornice.validators.colander_validator
so that it does
nothing ifschema
is unset (or set toNone
.) Previously
(contrary to its docstring) it was raising aTypeError
.
Internal changes
- Raised test coverage to 100% (#417)
Huge thanks to @dairiki for his help on this release