Bind and BindEmpty fill Req from path/query/json struct tags and validate once, extending the typed decode->validate->call->encode pipeline to routes with identifiers and filters. Conversion via builtins + encoding.TextUnmarshaler (uuid.UUID, time.Time); malformed value -> 400 naming the parameter; default: applies only when absent; repeated query -> slice; mis-tagged struct panics at wiring. Purely additive; existing adapters unchanged. Coordinated lockstep v1.6.0.
23 lines
660 B
AMPL
23 lines
660 B
AMPL
module code.nochebuena.dev/einherjar/web
|
|
|
|
go 1.26
|
|
|
|
require (
|
|
code.nochebuena.dev/einherjar/contracts v1.6.0
|
|
code.nochebuena.dev/einherjar/core v1.6.0
|
|
github.com/go-chi/chi/v5 v5.3.1
|
|
github.com/google/uuid v1.6.0
|
|
golang.org/x/time v0.15.0
|
|
)
|
|
|
|
require (
|
|
github.com/gabriel-vasile/mimetype v1.4.15 // indirect
|
|
github.com/go-playground/locales v0.14.1 // indirect
|
|
github.com/go-playground/universal-translator v0.18.1 // indirect
|
|
github.com/go-playground/validator/v10 v10.30.3 // indirect
|
|
github.com/leodido/go-urn v1.5.0 // indirect
|
|
golang.org/x/crypto v0.55.0 // indirect
|
|
golang.org/x/sys v0.47.0 // indirect
|
|
golang.org/x/text v0.41.0 // indirect
|
|
)
|