fixspec

command
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 6 Imported by: 0

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 ./...`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL