Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Automated validation of search/filter fields #259

Open
pond opened this issue May 10, 2018 · 0 comments
Open

Automated validation of search/filter fields #259

pond opened this issue May 10, 2018 · 0 comments

Comments

@pond
Copy link
Contributor

pond commented May 10, 2018

Sort of related to #255 - Hoodoo framework search/filter additions automatically validate the header quantities, so things like a created_by search is rejected with a reasonably informative 422 response should the search field's value not be a valid UUID.

Currently, there's no way for a resource interface class to request something similar. Models can provide quite complex mappings to get from search/filter request down to SQL level, while interfaces can give a basic list of things that are searchable or filterable, but there's no easy place to have validation and error returns done other than hand-coding it at Some Appropriate Point in the implementation flow.

This could be improved upon dramatically.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant