Skip to content

Can enum values be validated on a request ? #397

@muraaano

Description

@muraaano

On a request, request format can be validated by Committee::Middleware::RequestValidation.
But enums definition looks like not be validated by that.

I think it is useful to be validated because application code have not implement it like duplication.
Can we do that with some option ?

I checked enums mismatch on request won't raise exception with:

  • Ruby 3.2.2
  • Committee 5.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions