go-chi / go-chi/render

Validator option

Open
#10 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
339
Forks
66
PR merge metrics
No merged PRs in 30d

Description

Why not add Validator option, but not inside the code, only a default struct that after each one can config with the validator that want.

Like:
`render.Validator := &DefaultValidator{...}
....`

and after use something like:
` render.Validate(...)`

or something inside de Bind.

What do you think?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.