version

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package version defines the OpenAPI spec-version identifiers used by the emitters. The constants are re-exported at the root stdocs package as OpenAPI30 / OpenAPI31 / OpenAPI32.

stdocs supports the latest patch of each minor of OpenAPI 3. Older patches (3.0.3, 3.1.0, etc.) are not exposed as constants — wire compatibility means 3.0.3 documents are valid 3.0.4 documents, so users who wrote `OpenAPI30` previously are silently upgraded to the latest patch of their chosen minor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpecVersion

type SpecVersion string

SpecVersion identifies which OpenAPI version a spec is emitted as.

const (
	// OpenAPI30 is the latest 3.0.x patch (currently 3.0.4).
	OpenAPI30 SpecVersion = "3.0.4"
	// OpenAPI31 is the latest 3.1.x patch (currently 3.1.2).
	OpenAPI31 SpecVersion = "3.1.2"
	// OpenAPI32 is OpenAPI 3.2.0.
	OpenAPI32 SpecVersion = "3.2.0"
)

Jump to

Keyboard shortcuts

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