CHANGELOG

2.2.0 (2016-11-25)

2.1.0 (2016-10-28)

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', change cornice.validators.extract_cstruct
so that it places request.matchdict (rather than
request.path) into cstruct['path']. (#411)

Fix cornice.validators.colander_validator so that it does
nothing if schema is unset (or set to None.) Previously
(contrary to its docstring) it was raising a TypeError.

Internal changes

Raised test coverage to 100% (#417)

Huge thanks to @dairiki for his help on this release!

2.0.2 (2016-10-25)

Bug fixes

Exclude tests from install (#407, thanks @doctaweeks!)

Internal changes

Deprecate cornice.util.extract_json_data() and cornice.util.extract_form_urlencoded_data()
in favor of cornice.validators.extract_cstruct() (#409)