Skip to content

Add more straightforward options by type #347

@ota42y

Description

@ota42y

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions