Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load reads an OpenAPI specification from path (JSON or YAML) and returns it as a generic map suitable for marshalling back to JSON.
func LoadAndBundle ¶ added in v0.2.0
LoadAndBundle reads an OpenAPI specification from path (a file or directory) and returns it as a generic map with all external $ref references resolved and inlined. When path is a directory, the root spec file is auto-detected using well-known names (openapi.yaml, openapi.json, swagger.yaml, …) or the rootFile hint. When path is a file, rootFile is ignored.
func SanitizeEnums ¶
func SanitizeEnums(spec any)
SanitizeEnums walks the spec recursively and replaces every "enum" array with ["<enum>"], reducing noise in Postman diffs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.