openapiversion

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package openapiversion owns validation and normalization of Loom's openapi:version metadata value.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Target

type Target uint8

Target identifies the OpenAPI renderer family selected by metadata.

const (
	// Target31 selects OpenAPI 3.1 compatibility output.
	Target31 Target = iota + 1
	// Target32 selects canonical OpenAPI 3.2 output.
	Target32
)

func Parse

func Parse(value string) (Target, error)

Parse validates value and returns its canonical renderer target. Empty values select the default OpenAPI 3.2 target.

Jump to

Keyboard shortcuts

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