Versions in this module Expand all Collapse all v0 v0.2.0 Nov 22, 2026 v0.1.0 Sep 6, 2026 Changes in this version + const Draft202012 + var ErrDescriptorContractMismatch = errors.New("graph IR and descriptor contract mismatch") + var ErrInvalidOptions = errors.New("invalid schema generation options") + var ErrInvalidResolvedSchema = errors.New("invalid resolved config schema") + var ErrInvalidSchemaID = errors.New("invalid schema ID") + var ErrLimitExceeded = errors.New("schema generation limit exceeded") + var ErrSchemaIDCollision = errors.New("schema ID collision") + var ErrSchemaNotFound = errors.New("config schema not found") + var ErrUnknownConfigContract = errors.New("config schema contract is unresolved") + var ErrUnknownDescriptor = errors.New("unknown exact element descriptor") + type Bundle struct + Complete bool + Contracts []ContractResolution + Digest string + Nodes []NodeContract + Schema json.RawMessage + Unresolved []string + func Generate(ctx context.Context, graph ir.Graph, catalog *resolve.Catalog, options Options) (Bundle, error) + type ContractResolution struct + Definition string + NodeIDs []string + Reference string + SchemaID string + Status ContractStatus + type ContractStatus string + const ContractEmptyObject + const ContractResolved + const ContractUnresolved + type Generator struct + func New(ctx context.Context, graph ir.Graph, catalog *resolve.Catalog, options Options) (*Generator, error) + func (generator *Generator) Bundle() Bundle + type Limits struct + MaxConfigContracts int + MaxDescriptorBytes int + MaxDistinctDescriptors int + MaxGeneratedSchemaBytes int + MaxGraphBoundaries int + MaxGraphBytes int + MaxGraphEdges int + MaxGraphNodes int + MaxGraphPorts int + MaxGraphScopes int + MaxResolvedSchemaBytes int + MaxResolvedSchemas int + MaxSchemaDepth int + MaxSchemaValues int + MaxStringBytes int + MaxTotalDescriptorBytes int + MaxTotalResolvedSchemaBytes int + MaxTypeDepth int + func DefaultLimits() Limits + type NodeContract struct + ConfigReference string + Definition string + Element element.Identity + NodeID string + SchemaID string + Status ContractStatus + type Options struct + Limits Limits + RequireResolved bool + Resolver Resolver + SchemaID string + type PropertyMetadata struct + Default json.RawMessage + Description string + Enum []json.RawMessage + Format string + Name string + Pointer string + Required bool + Schema json.RawMessage + Title string + Types []string + type PropertyOptions struct + Limits Limits + MaxProperties int + Resolver Resolver + type PropertyReport struct + AdditionalProperties json.RawMessage + Complete bool + Digest string + Properties []PropertyMetadata + Reference string + SchemaBytes int + SchemaID string + func ResolvePropertyMetadata(ctx context.Context, reference string, options PropertyOptions) (PropertyReport, error) + type ResolvedSchema struct + Document json.RawMessage + ID string + type Resolver interface + ResolveConfigSchema func(ctx context.Context, reference string) (ResolvedSchema, error)