Documentation
¶
Overview ¶
Command requiredoutputfields regenerates the required-response-member ranking for gopherstack-r80d (see services/_REQUIRED_OUTPUT_CANDIDATES.md).
For each services/<dir>, it resolves the pinned aws-sdk-go-v2/service/<mod>@<version> from go.mod (directory name and module name diverge for a handful of services — see dirModuleOverride, shared with cmd/overwidecandidates), reads every api_op_<Op>.go file from $(go env GOMODCACHE)/github.com/aws/aws-sdk-go-v2/service/<mod>@<version>, and for each "type <Op>Output struct{...}" walks blank-line-separated top-level field blocks (brace-depth tracked, so a nested struct's own blank lines never split a block early) flagging any field whose doc comment contains the exact line "This member is required."
This counts required OUTPUT members only — it says nothing about whether gopherstack's handler actually populates them. That verification is a per-service hand-read; this tool only ranks where to spend it.
Usage:
go run ./cmd/requiredoutputfields # ranked summary to stdout go run ./cmd/requiredoutputfields -json out.json # full per-op detail