{"record":{"id":"956b955a4153e062","repo":"larksuite/cli","slug":"s-uses-unknown-valueshape-t","errorCode":null,"errorMessage":"%s uses unknown ValueShape %T","messagePattern":"(.+?) uses unknown ValueShape %T","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"shortcuts/common/typed_compile_data.go","lineNumber":333,"sourceCode":"\t\t\t}\n\t\t}\n\t\tif value.AdditionalPropertiesShape != nil && !value.AdditionalProperties {\n\t\t\treturn fmt.Errorf(\"%s AdditionalPropertiesShape requires AdditionalProperties\", path)\n\t\t}\n\t\tif value.AdditionalPropertiesShape != nil {\n\t\t\treturn validateShape(value.AdditionalPropertiesShape, path+\".AdditionalPropertiesShape\")\n\t\t}\n\tcase typedOneOfShape:\n\t\tif len(value.Variants) < 2 {\n\t\t\treturn fmt.Errorf(\"%s oneOf requires at least two variants\", path)\n\t\t}\n\t\tfor i, variant := range value.Variants {\n\t\t\tif err := validateShape(variant, fmt.Sprintf(\"%s.Variants[%d]\", path, i)); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\tdefault:\n\t\treturn fmt.Errorf(\"%s uses unknown ValueShape %T\", path, shape)\n\t}\n\treturn nil\n}\n\nfunc applyDataOverride(root *typedObjectShape, override typedDataField) error {\n\tencodedParts := strings.Split(strings.TrimPrefix(override.Path, \"/\"), \"/\")\n\tif len(encodedParts) == 0 || encodedParts[0] == \"\" {\n\t\treturn fmt.Errorf(\"pointer must identify a field\")\n\t}\n\tparts := make([]string, len(encodedParts))\n\tfor i, encoded := range encodedParts {\n\t\tdecoded, ok := decodeJSONPointerSegment(encoded)\n\t\tif !ok {\n\t\t\treturn fmt.Errorf(\"segment %q has invalid RFC 6901 escaping\", encoded)\n\t\t}\n\t\tparts[i] = decoded\n\t}\n\treturn mutateObjectField(root, parts, func(field *typedValueField) error {","sourceCodeStart":315,"sourceCodeEnd":351,"githubUrl":"https://github.com/larksuite/cli/blob/7fd6ef3c07182257ce776cdc5a614e122d5bd4b3/shortcuts/common/typed_compile_data.go#L315-L351","documentation":"validateShape's default branch: the shape value's concrete Go type is not one of the known typed*Shape implementations - an authoring-time programming error, or a new shape kind not taught to the validator.","triggerScenarios":"Thrown at shortcuts/common/typed_compile_data.go:333 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass one of the typed*Shape implementations, or extend validateShape for the new kind"],"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"}