type

PluginFieldType

type PluginFieldType struct { // Key matches the PluginField key stored in the schema manifest. Key string // TypeScriptPackage exports the named output, input, and where types. TypeScriptPackage string // TypeScriptOutput is the stored document value type export. TypeScriptOutput string // TypeScriptInput is the create and update value type export. TypeScriptInput string // TypeScriptWhere is the optional query operand type export. TypeScriptWhere string // GoPackage and GoType optionally name the generated Go model type. GoPackage string // GoType is an exported type in GoPackage; both Go fields are optional together. GoType string // JSONSchema is the deterministic OpenAPI 3.1 schema for one field value. JSONSchema []byte }

Exact generated Go, TypeScript, where, and OpenAPI types for a plugin field.

Source core/plugin.go:78

Keystring
PluginField key stored in the schema manifest.
TypeScriptPackagestring
Package exporting the named TypeScript contracts.
TypeScriptOutputstring
Stored document value type export.
TypeScriptInputstring
Create and update value type export.
TypeScriptWherestring
Optional query operand type export.
GoPackagestring
Optional generated-model Go import path.
GoTypestring
Exported type in GoPackage; both Go fields are optional together.
JSONSchema[]byte
Deterministic OpenAPI 3.1 schema for one field value.

Go type mapping is optional and falls back to json.RawMessage. TypeScript names are emitted as type-only imports. JSONSchema must be deterministic.