Documentation
¶
Overview ¶
Command fixspec sanitizes the upstream Sectors OpenAPI spec so oapi-codegen can consume it, without mutating the pristine source file.
The upstream spec (sectors-schema.json) contains a few malformed paths — e.g. `/v2/company/report/` — that declare a *required path parameter* which does not appear in the URL template. oapi-codegen rejects these. They are also redundant: a correct `/v2/company/report/{symbol}/` variant always exists.
This tool drops any operation whose declared `in: path` parameter is missing from its path template, drops paths left with no operations, and writes the result to a separate file. Re-run via `go generate ./...`.
Click to show internal directories.
Click to hide internal directories.