MCPcopy Create free account
hub / github.com/compozy/agh / parseOptionalBridgeJSONWithLabel

Function parseOptionalBridgeJSONWithLabel

internal/cli/bridge.go:1146–1152  ·  view source on GitHub ↗
(raw string, label string)

Source from the content-addressed store, hash-verified

1144}
1145
1146func parseOptionalBridgeJSONWithLabel(raw string, label string) (*json.RawMessage, error) {
1147 trimmed := strings.TrimSpace(raw)
1148 if trimmed == "" {
1149 return nil, nil
1150 }
1151 return parseRequiredBridgeJSONWithLabel(trimmed, label)
1152}
1153
1154func parseRequiredBridgeJSON(raw string) (*json.RawMessage, error) {
1155 return parseRequiredBridgeJSONWithLabel(raw, "delivery defaults")

Callers 2

buildBridgeCreatePayloadFunction · 0.85
parseOptionalBridgeJSONFunction · 0.85

Calls 1

Tested by

no test coverage detected