Help us shape the future of Go! Take the 2026 Go Developer Survey

openapimeta

package
v1.10.0-alpha.17 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package openapimeta owns the authored metadata key contract for OpenAPI tags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTagKey

func ParseTagKey(key string) (name, field string, ok bool, err error)

ParseTagKey parses a canonical tag metadata key. A false result means key is unrelated to OpenAPI tag metadata; malformed tag keys return an error.

func TagAnnotationKey

func TagAnnotationKey(name, field string) string

TagAnnotationKey returns the canonical metadata key for a tag annotation.

func TagIdentityKey

func TagIdentityKey(name string) string

TagIdentityKey returns the canonical metadata key that identifies name.

func ValidateTagMetadata

func ValidateTagMetadata(metadata map[string][]string) error

ValidateTagMetadata rejects malformed keys and values at the generation boundary, before tag extraction can index an invalid value list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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