{"record":{"id":"b6e5a472323c6c5b","repo":"larksuite/cli","slug":"unsigned-integer-cli-input-s-is-not-supported-us","errorCode":null,"errorMessage":"unsigned integer CLI input %s is not supported; use int or an explicit JSON encoding","messagePattern":"unsigned integer CLI input (.+?) is not supported; use int or an explicit JSON encoding","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"shortcuts/common/typed_compile_data.go","lineNumber":95,"sourceCode":"\t\t\tstringShape.Enum = append(stringShape.Enum, raw)\n\t\t}\n\t\tshape = stringShape\n\tcase reflect.Bool:\n\t\tbooleanShape := typedBooleanShape{}\n\t\tfor _, raw := range schema.enum {\n\t\t\tv, err := parseBool(raw)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"enum value %q is not boolean\", raw)\n\t\t\t}\n\t\t\tbooleanShape.Enum = append(booleanShape.Enum, v)\n\t\t}\n\t\tif hasStringConstraints(schema) || hasNumberConstraints(schema) || hasItemConstraints(schema) {\n\t\t\treturn nil, fmt.Errorf(\"boolean field has incompatible schema constraint\")\n\t\t}\n\t\tshape = booleanShape\n\tcase reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:\n\t\tif input && baseType.Kind() >= reflect.Uint && baseType.Kind() <= reflect.Uint64 {\n\t\t\treturn nil, fmt.Errorf(\"unsigned integer CLI input %s is not supported; use int or an explicit JSON encoding\", baseType)\n\t\t}\n\t\tintegerShape := typedIntegerShape{}\n\t\tif schema.minimum != nil {\n\t\t\tv := int64(*schema.minimum)\n\t\t\tif float64(v) != *schema.minimum {\n\t\t\t\treturn nil, fmt.Errorf(\"minimum must be an integer\")\n\t\t\t}\n\t\t\tintegerShape.Minimum = &v\n\t\t}\n\t\tif schema.maximum != nil {\n\t\t\tv := int64(*schema.maximum)\n\t\t\tif float64(v) != *schema.maximum {\n\t\t\t\treturn nil, fmt.Errorf(\"maximum must be an integer\")\n\t\t\t}\n\t\t\tintegerShape.Maximum = &v\n\t\t}\n\t\tfor _, raw := range schema.enum {\n\t\t\tv, err := strconv.ParseInt(raw, 10, baseType.Bits())","sourceCodeStart":77,"sourceCodeEnd":113,"githubUrl":"https://github.com/larksuite/cli/blob/7fd6ef3c07182257ce776cdc5a614e122d5bd4b3/shortcuts/common/typed_compile_data.go#L77-L113","documentation":"CLI input authoring guard: unsigned integer kinds are rejected for direct CLI flags (their parsing and negative-value semantics differ); only signed int kinds or an explicit json encoding are supported.","triggerScenarios":"Thrown at shortcuts/common/typed_compile_data.go:95 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a signed int type, or declare encoding:\"json\" for the field"],"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"}