{"record":{"id":"a774b2ee015ff233","repo":"larksuite/cli","slug":"output-data-overrides-d-path-q-w","errorCode":null,"errorMessage":"Output.Data.Overrides[%d] path %q: %w","messagePattern":"Output\\.Data\\.Overrides\\[(.+?)\\] path %q: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"shortcuts/common/typed_compile_data.go","lineNumber":55,"sourceCode":"\tif dataType.Kind() == reflect.Interface && dataType.NumMethod() == 0 {\n\t\tif len(definition.Overrides) > 0 {\n\t\t\treturn nil, fmt.Errorf(\"Output.Data.Overrides require struct Data\")\n\t\t}\n\t\treturn anyJSONShape{}, nil\n\t}\n\tif dataType.Kind() != reflect.Struct {\n\t\treturn nil, fmt.Errorf(\"Data must be a non-pointer struct or any unless Output.Data.Shape is explicit, got %s\", dataType)\n\t}\n\tshape, err := compileStructShape(dataType, false, \"Data\", map[reflect.Type]struct{}{})\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tfor i, override := range definition.Overrides {\n\t\tif override.Path == \"\" || !strings.HasPrefix(override.Path, \"/\") {\n\t\t\treturn nil, fmt.Errorf(\"Output.Data.Overrides[%d].Path %q must be an RFC 6901 JSON Pointer\", i, override.Path)\n\t\t}\n\t\tif err := applyDataOverride(&shape, override); err != nil {\n\t\t\treturn nil, fmt.Errorf(\"Output.Data.Overrides[%d] path %q: %w\", i, override.Path, err)\n\t\t}\n\t}\n\tif err := validateShape(shape, \"Output.Data\"); err != nil {\n\t\treturn nil, err\n\t}\n\treturn shape, nil\n}\n\n// shapeForType derives the ValueShape of one Go type. active carries the struct\n// types on the current recursion path so a self-referential type is rejected\n// with a compile error; see compileStructShape.\nfunc shapeForType(t reflect.Type, schema schemaTag, input bool, active map[reflect.Type]struct{}) (typedValueShape, error) {\n\tbaseType := t\n\tfor baseType.Kind() == reflect.Pointer {\n\t\tbaseType = baseType.Elem()\n\t}\n\tvar shape typedValueShape\n\tswitch baseType.Kind() {","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/larksuite/cli/blob/7fd6ef3c07182257ce776cdc5a614e122d5bd4b3/shortcuts/common/typed_compile_data.go#L37-L73","documentation":"Wraps failures while applying one Output.Data.Overrides entry: the JSON-pointer path is empty/malformed or the targeted field mutation failed. Index and path identify the offending override.","triggerScenarios":"Thrown at shortcuts/common/typed_compile_data.go:55 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the JSON Pointer path in the failing Output.Data.Overrides entry (RFC 6901, fields must exist)"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7fd6ef3c07182257ce776cdc5a614e122d5bd4b3","analyzedAt":"2026-09-04T21:17:44.649Z","contentChangedAt":"2026-09-04T21:17:44.649Z","schemaVersion":2},"datasetVersion":"2026-09-12T02:17:10.037Z"}