MCPcopy Create free account
hub / github.com/github/gh-aw / resolveImportInputPath

Function resolveImportInputPath

pkg/workflow/expression_extraction.go:537–539  ·  view source on GitHub ↗

resolveImportInputPath resolves a potentially dotted key path from the importInputs map. For scalar inputs ("count"), it looks up importInputs["count"] directly. For object sub-key paths ("config.apiKey"), it looks up importInputs["config"]["apiKey"], supporting one level of nesting as defined by im

(importInputs map[string]any, path string)

Source from the content-addressed store, hash-verified

535// supporting one level of nesting as defined by import-schema object types.
536// Returns the resolved value and true on success, or nil and false when the path is not found.
537func resolveImportInputPath(importInputs map[string]any, path string) (any, bool) {
538 return importinpututil.ResolvePathValue(importInputs, path)
539}

Callers 1

SubstituteImportInputsFunction · 0.70

Calls 1

ResolvePathValueFunction · 0.92

Tested by

no test coverage detected