type

PluginFieldType

Generated Go, TypeScript, where, and OpenAPI mapping for a plugin field.

Properties

PropertyTypeDescription
EmbeddedTypes[]stringEmbeddedTypes lists tree.case selectors supplying ordered generic payload type arguments.
KeystringPluginField key stored in the schema manifest.
TypeScriptPackagestringPackage exporting the named TypeScript contracts.
TypeScriptOutputstringStored document value type export.
TypeScriptInputstringCreate and update value type export.
TypeScriptWherestringOptional query operand type export.
GoPackagestringOptional generated-model Go import path.
GoTypestringExported type in GoPackage; both Go fields are optional together.
JSONSchema[]byteDeterministic OpenAPI 3.1 schema for one field value.

How it works

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

Full signature