mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 16:33:47 +03:00
a2c9cfc55b
several fields in dmarc and tls reports have known string values. we have a Go string type for them. sherpats (through sherpadoc) turns those strings into typescript enums, and sherpats generates runtime-typechecking code (to enforce correct types for incoming json, to prevent failing deeper in the code when we get invalid data (much harder to debug)). the Go not-really-enum types allow other values, and real-world reports have unknown/unspecified/invalid values. this uses the sherpadoc -rename flag to turn those enums into regular untyped strings, so sherpats doesn't generate enum-enforcing runtime type checking code. this required an update to sherpadoc, to properly handling renaming a type to a basic type instead of another named type. for issue #161 by RobSlgm, thanks for reporting!
37 lines
1.2 KiB
Modula-2
37 lines
1.2 KiB
Modula-2
module github.com/mjl-/mox
|
|
|
|
go 1.21
|
|
|
|
require (
|
|
github.com/mjl-/adns v0.0.0-20240509092456-2dc8715bf4af
|
|
github.com/mjl-/autocert v0.0.0-20231214125928-31b7400acb05
|
|
github.com/mjl-/bstore v0.0.5
|
|
github.com/mjl-/sconf v0.0.6
|
|
github.com/mjl-/sherpa v0.6.7
|
|
github.com/mjl-/sherpadoc v0.0.16
|
|
github.com/mjl-/sherpaprom v0.0.2
|
|
github.com/mjl-/sherpats v0.0.6
|
|
github.com/prometheus/client_golang v1.18.0
|
|
github.com/russross/blackfriday/v2 v2.1.0
|
|
go.etcd.io/bbolt v1.3.10
|
|
golang.org/x/crypto v0.22.0
|
|
golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f
|
|
golang.org/x/net v0.24.0
|
|
golang.org/x/text v0.14.0
|
|
rsc.io/qr v0.2.0
|
|
)
|
|
|
|
require (
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
|
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
|
|
github.com/mjl-/xfmt v0.0.2 // indirect
|
|
github.com/prometheus/client_model v0.5.0 // indirect
|
|
github.com/prometheus/common v0.45.0 // indirect
|
|
github.com/prometheus/procfs v0.12.0 // indirect
|
|
golang.org/x/mod v0.17.0 // indirect
|
|
golang.org/x/sync v0.7.0 // indirect
|
|
golang.org/x/sys v0.19.0 // indirect
|
|
golang.org/x/tools v0.20.0 // indirect
|
|
google.golang.org/protobuf v1.31.0 // indirect
|
|
)
|