Documentation
¶
Overview ¶
Package typeinfo provides shared type inference from a Node tree. It is used by the typegen lens to generate Go structs, TypeScript interfaces, and JSON Schema. The inference handles nullable fields and merges shapes across array elements.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldInfo ¶
type FieldInfo struct {
Name string
GoName string // PascalCase
Type *TypeInfo
Nullable bool // true if the field was null in any observed sample
}
FieldInfo describes a single field in an inferred object type.
Click to show internal directories.
Click to hide internal directories.