pontoonext

package
v2.0.0-b6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ExtGoPackage   = "x-pontoon-go-package"
	ExtGoType      = "x-pontoon-go-type"
	ExtGoFieldName = "x-pontoon-field-go-name"
)

ExtensionKeys contains known extension keys

Variables

This section is empty.

Functions

func GetGoFieldName

func GetGoFieldName(extensions *orderedmap.Map[string, *yaml.Node]) (string, bool)

GetGoFieldName extracts Go field name from schema extensions

Types

type GoTypeInfo

type GoTypeInfo struct {
	PackagePath string // Go package import path
	TypeName    string // Go type name
}

GoTypeInfo encapsulates Go type information from OpenAPI extensions

func GetGoTypeInfo

func GetGoTypeInfo(extensions *orderedmap.Map[string, *yaml.Node]) (*GoTypeInfo, bool)

GetGoTypeInfo extracts Go type information from schema extensions

func (GoTypeInfo) SetTo

func (g GoTypeInfo) SetTo(extensions *orderedmap.Map[string, *yaml.Node])

func (GoTypeInfo) String

func (g GoTypeInfo) String() string

Jump to

Keyboard shortcuts

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