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 ¶
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
Click to show internal directories.
Click to hide internal directories.