Skip to content

Feature request: Data validation middleware for RESTful Event Handler #4519

@nateiler

Description

@nateiler

Use case

Per the docs, it would be great to have standard schema validation.

I'm sure this has been discussed in some detail internally, however I would find value in input and output validation. Additionally, we have also validated against route and query params occasionally.

I stubbed out a quick middleware and pulled in some of the parser middy middleware logic. My initial thought is typing is going to be difficult. Ideally, it would be great to have the validated request body schema typing available within the route.

Solution/User Experience

No proposed solution at this time; just opening this to initiate the discussion

Alternative solutions

Acknowledgment

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    rejectedThis is something we will not be working on. At least, not in the measurable future

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions