Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyDefaults ¶
func ApplyDefaults(values map[string]any, defs []Definition) map[string]any
ApplyDefaults fills missing schema-defined fields with default values or empty container values for object/repeater fields.
Types ¶
type Definition ¶
type Definition = config.FieldDefinition
Definition is the schema field definition type used by Foundry's structured content-modeling system.
func DefinitionsFor ¶
func DefinitionsFor(cfg *config.Config, kind string) []Definition
DefinitionsFor returns the field definitions for a content kind.
Kind-specific schemas take precedence over the "default" schema.
type SchemaSet ¶
type SchemaSet = config.FieldSchemaSet
SchemaSet is the configured set of field schemas keyed by content kind.
Click to show internal directories.
Click to hide internal directories.