Update the validator example for version 5 configuration

This commit is contained in:
2026-09-14 00:42:35 +00:00
parent 6107adb140
commit c02eec74dd
3 changed files with 18 additions and 8 deletions

View File

@@ -15,9 +15,8 @@ type LoadOptions struct {
InvocationDirectory string
}
// loadDocument is the private ConfigKit load boundary under construction.
// Production commands continue to use the existing version 4 loader until the
// runtime conversion and command wiring are complete.
// loadDocument composes and validates a version 5 file with ConfigKit before
// runtime conversion, retaining source provenance and frozen inspection output.
func loadDocument(path string, options LoadOptions) (*configkit.Result[Document], error) {
return loadDocumentWithSource(configkit.File(path), options, true)
}