-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Labels
Description
Now we support many options and committee's middleware expect these options by hash.
https://github.com/interagent/committee#committeemiddlewarerequestvalidation
I want to add Option class with type it provide typing support checking for correct values, and for internal use.
Now we have RequestValidation and ResponseValidation class, these classes based on Base class.
https://github.com/interagent/committee/tree/master/lib/committee/middleware
So our new option class should be same structure.
- BaseOption
- use by Base class
- RequestValidationOption
- use by RequestValidation class
- user pass this object
- (or if the user pass options by hash, committee create this class)
- ResponseValidationOption
- use by ResponseValidation class