normalize

package
v0.0.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package normalize resolves and validates parsed schema components. It produces deterministic registries and resolved references for compilation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifacts

type Artifacts struct {
	// contains filtered or unexported fields
}

Artifacts stores normalized schema artifacts for runtime compilation.

func Prepare

func Prepare(sch *parser.Schema) (*Artifacts, error)

Prepare clones, resolves, and validates a parsed schema.

func PrepareOwned

func PrepareOwned(sch *parser.Schema) (*Artifacts, error)

PrepareOwned resolves and validates a parsed schema in place.

func (*Artifacts) ComplexTypes

func (a *Artifacts) ComplexTypes() *complextypeplan.Plan

ComplexTypes returns the precomputed complex type plan.

func (*Artifacts) GlobalElementOrderSeq

func (a *Artifacts) GlobalElementOrderSeq() iter.Seq[model.QName]

GlobalElementOrderSeq yields deterministic global element order.

func (*Artifacts) References

func (a *Artifacts) References() *analysis.ResolvedReferences

References returns resolved references.

func (*Artifacts) Registry

func (a *Artifacts) Registry() *analysis.Registry

Registry returns the normalized registry.

func (*Artifacts) Schema

func (a *Artifacts) Schema() *parser.Schema

Schema returns the normalized schema graph.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL