Skip to content

how about DTO function instead of validate #2

Description

@jochongs

like this.

DTO({
    email: body(message().isString().isEmail()),
    page: params(message().isNumber())
})

then you can export the value req.dto in the next request handler.

what do you think about this function?

Metadata

Metadata

Assignees

Labels

suggestNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions