openapi

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSpec

func GenerateSpec(api huma.API) ([]byte, error)

GenerateSpec generates an OpenAPI spec from a Huma API and returns it as bytes

func GenerateSpecToFile

func GenerateSpecToFile(api huma.API, outputPath string) error

GenerateSpecToFile generates an OpenAPI spec from a Huma API and saves it to a file

func GenerateSpecYAML

func GenerateSpecYAML(api huma.API) ([]byte, error)

GenerateSpecYAML generates an OpenAPI spec in YAML format

func GetRouteCount

func GetRouteCount(api huma.API) int

GetRouteCount returns the number of routes in the API

Types

This section is empty.

Jump to

Keyboard shortcuts

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