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.
aclandtraverseparameters 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: nosniffheaders to responses (fixes #102) - Add a
request.current_serviceattribute (fixes #105)
Bug fixes
- Fix
cornice.cors.get_cors_preflight_viewto make it parse
Access-Control-Request-Headersheader 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
whereaclandfactorywere expected as view arguments (whereas
deprecated since 1.0)
2.2.0
2.1.0
Enhancements
Cornice.validators.colander_validatorand
cornice.validators.colander_body_validatornow accept colander
schema node instances. Previously only schema classes were
accepted. For some discussion see #412.
Deprecations
- Passing schema classes to
Cornice.validators.colander_validatorand
cornice.validators.colander_body_validatoris 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_validatorso that it does
nothing ifschemais 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