openapi

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(service *compiler.CompiledService) (*openapi3.T, error)

Generate builds a validated OpenAPI 3.1.0 document from a CompiledService.

func GenerateJSON

func GenerateJSON(service *compiler.CompiledService, pretty bool) ([]byte, error)

GenerateJSON serializes the OpenAPI 3.1 specification to formatted JSON.

func GenerateYAML

func GenerateYAML(service *compiler.CompiledService) ([]byte, error)

GenerateYAML converts the canonical JSON representation into YAML to preserve custom kin-openapi tags.

func RenderHTML

func RenderHTML(ui string, data TemplateData, rawTemplate, templateFile, manifestDir string) ([]byte, error)

RenderHTML generates the HTML page for the selected interactive documentation renderer.

Types

type TemplateData

type TemplateData struct {
	Title       string
	Version     string
	Description string
	SpecURL     string
	SpecYAMLURL string
}

TemplateData holds view context data for OpenAPI HTML renderers.

Jump to

Keyboard shortcuts

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