The server registers its routes from one table in server/routes.go, and tools/genopenapi (run by go generate) writes docs/swagger.json, an OpenAPI 3.1 document, from the same table and the Go types it names. Schemas are reflected with invopop/jsonschema: descriptions from the first paragraph of the doc comments, enums and limits from jsonschema tags. Request schemas are strict, as the decoder is; response schemas allow fields added later. The daemon serves the embedded document at GET /openapi.json without a token, internal/app passes it to the server in its config, and release archives and the Docker build include it. Tests keep it honest: a golden test and a CI step fail when the document is stale, every registered route must be in the table, and the tags are held to validation, to the Go constants and to the values the handlers send. receipt.Element and printqueue.Status gain field doc comments for the descriptions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
64 lines
2.3 KiB
AMPL
64 lines
2.3 KiB
AMPL
module uberbringer
|
|
|
|
go 1.27.4
|
|
|
|
require (
|
|
github.com/getsentry/sentry-go v0.50.0
|
|
github.com/go-viper/mapstructure/v2 v2.5.0
|
|
github.com/gofiber/fiber/v3 v3.7.0
|
|
github.com/golang-jwt/jwt/v5 v5.3.1
|
|
github.com/invopop/jsonschema v0.14.0
|
|
github.com/liamg/tml v0.7.1
|
|
github.com/pelletier/go-toml/v2 v2.4.3
|
|
github.com/spf13/cobra v1.10.2
|
|
github.com/spf13/viper v1.21.0
|
|
go.jetify.com/typeid v1.3.0
|
|
golang.org/x/image v0.48.0
|
|
golang.org/x/sync v0.25.0
|
|
golang.org/x/text v0.44.0
|
|
)
|
|
|
|
require (
|
|
github.com/BurntSushi/toml v1.6.0 // indirect
|
|
github.com/bahlo/generic-list-go v0.2.0 // indirect
|
|
github.com/buger/jsonparser v1.6.1 // indirect
|
|
github.com/fsnotify/fsnotify v1.9.0 // indirect
|
|
github.com/gofiber/schema v1.10.2 // indirect
|
|
github.com/gofiber/utils/v2 v2.6.5 // indirect
|
|
github.com/gofrs/uuid/v5 v5.5.1 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/klauspost/compress v1.20.5 // indirect
|
|
github.com/mattn/go-colorable v0.1.16 // indirect
|
|
github.com/mattn/go-isatty v0.0.24 // indirect
|
|
github.com/molecule-man/go-brrr v1.3.1 // indirect
|
|
github.com/pb33f/go-yaml v0.2.0 // indirect
|
|
github.com/pb33f/ordered-map/v2 v2.3.2 // indirect
|
|
github.com/philhofer/fwd v1.2.1 // indirect
|
|
github.com/sagikazarmark/locafero v0.11.0 // indirect
|
|
github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect
|
|
github.com/spf13/afero v1.15.0 // indirect
|
|
github.com/spf13/cast v1.10.0 // indirect
|
|
github.com/spf13/pflag v1.1.0 // indirect
|
|
github.com/subosito/gotenv v1.6.0 // indirect
|
|
github.com/tinylib/msgp v1.6.5 // indirect
|
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
|
github.com/valyala/fasthttp v1.80.0 // indirect
|
|
go.yaml.in/yaml/v3 v3.0.6 // indirect
|
|
golang.org/x/crypto v0.59.0 // indirect
|
|
golang.org/x/exp/typeparams v0.0.0-20231108232855-2478ac86f678 // indirect
|
|
golang.org/x/mod v0.43.0 // indirect
|
|
golang.org/x/net v0.63.0 // indirect
|
|
golang.org/x/sys v0.50.0 // indirect
|
|
golang.org/x/telemetry v0.0.0-20261116191925-e77a43154acb // indirect
|
|
golang.org/x/tools v0.53.0 // indirect
|
|
golang.org/x/vuln v1.10.0 // indirect
|
|
honnef.co/go/tools v0.8.2 // indirect
|
|
)
|
|
|
|
tool (
|
|
golang.org/x/tools/cmd/goimports
|
|
golang.org/x/vuln/cmd/govulncheck
|
|
honnef.co/go/tools/cmd/staticcheck
|
|
)
|