After commit 40ed37a2f4 and the release of 4.0, all schema arguments need to be instances (because of the isinstance() call), while Cornice accepted classes before that. I don't think the "classes" behavior has been deprecated, but I may be wrong.
I did this kind of change on all schema arguments and it stopped crashing:
It's not a big fix but it took some time chasing it down. A DeprecationWarning when schemas are classes instead of instances would have been appreciated.
After commit 40ed37a2f4 and the release of 4.0, all schema arguments need to be instances (because of the
isinstance()
call), while Cornice accepted classes before that. I don't think the "classes" behavior has been deprecated, but I may be wrong. I did this kind of change on all schema arguments and it stopped crashing:It's not a big fix but it took some time chasing it down. A
DeprecationWarning
when schemas are classes instead of instances would have been appreciated.