openapi

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(path string) (map[string]any, error)

Load reads an OpenAPI specification from path (JSON or YAML) and returns it as a generic map suitable for marshalling back to JSON.

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.

Jump to

Keyboard shortcuts

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