Documentation
¶
Overview ¶
Package extension reads the x-* extensions mockzilla-codegen knows into typed values.
Index ¶
Constants ¶
View Source
const ( GoType = "x-go-type" GoTypeImport = "x-go-type-import" GoTypeName = "x-go-type-name" GoName = "x-go-name" GoNameExact = "x-go-name-exact" SkipPointer = "x-go-type-skip-optional-pointer" Nullable = "x-go-nullable" JSONIgnore = "x-go-json-ignore" OmitEmpty = "x-omitempty" ExtraTags = "x-go-extra-tags" EnumNames = "x-enum-names" DeprecatedReason = "x-deprecated-reason" SensitiveData = "x-sensitive-data" MCPName = "x-mcp" )
Names of the extensions Parse reads.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mask ¶
Mask is x-sensitive-data. Pattern is the regular expression of MaskRegex; KeepPrefix and KeepSuffix are the characters MaskPartial leaves visible.
type Set ¶
type Set struct {
GoType *Type
TypeName string
Name string
IsExactName bool
IsPointerSkipped bool
Nullable *bool
IsJSONIgnored bool
OmitEmpty *bool
Tags []Tag
EnumNames []string
DeprecatedReason string
Sensitive *Mask
MCP *MCP
}
Set holds the extensions of one schema, parameter or operation. Fields of extensions that are absent keep their zero value.
Click to show internal directories.
Click to hide internal directories.