Oh, you probably don't want to put that in ext. The "ext" repository is meant for "extensions".

Unless I'm missing something, this thing will be an addition to the "normal" cornice behaviors. I would rather put that in pyramid_hooks for instance, or in utils.