preaction / Yancy

The Best Web Framework Deserves the Best Content Management System
http://preaction.me/yancy/
Other
54 stars 21 forks source link

Filters enhancements #50

Closed mohawk2 closed 5 years ago

mohawk2 commented 5 years ago

Intended to increase the usefulness of filters. Allows them to be configured with parameters under x-filter, and also to be configured on OpenAPI operations.

Also adds two filters: yancy.from_helper and yancy.overlay_from_helper. These are intended for replacing either a single property, or applying to a collection or operation-input hash-ref, with a named helper.

mohawk2 commented 5 years ago

Further commits also added output filtering with x-filter-output and filter yancy.wrap.

mohawk2 commented 5 years ago

...and on further staring at the "realworld" thingy I realised this also needs a yancy.unwrap, which I added.

mohawk2 commented 5 years ago

If you feel the issues are all resolved (thanks, your reviews always lead to improvements!), do you feel this ready for merging? I rebased against your latest master.

preaction commented 5 years ago

Yes, sorry, I knew I forgot something.