{"record":{"id":"4e3d3955e5f896ee","repo":"larksuite/cli","slug":"schema-format-requires-a-name","errorCode":null,"errorMessage":"schema format requires a name","messagePattern":"schema format requires a name","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"shortcuts/common/typed_compile_args.go","lineNumber":451,"sourceCode":"\t\t\tif !hasValue || value == \"\" {\n\t\t\t\treturn result, fmt.Errorf(\"schema default requires a JSON literal\")\n\t\t\t}\n\t\t\tif !input {\n\t\t\t\treturn result, fmt.Errorf(\"Data field cannot declare default\")\n\t\t\t}\n\t\t\tvar decoded any\n\t\t\tif err := json.Unmarshal([]byte(value), &decoded); err != nil {\n\t\t\t\treturn result, fmt.Errorf(\"schema default is not valid JSON: %w\", err)\n\t\t\t}\n\t\t\tresult.defaultValue = typedInputDefault{Set: true, Value: decoded}\n\t\tcase \"enum\":\n\t\t\tif !hasValue || value == \"\" {\n\t\t\t\treturn result, fmt.Errorf(\"schema enum requires at least one value\")\n\t\t\t}\n\t\t\tresult.enum = strings.Split(value, \"|\")\n\t\tcase \"format\":\n\t\t\tif !hasValue || value == \"\" {\n\t\t\t\treturn result, fmt.Errorf(\"schema format requires a name\")\n\t\t\t}\n\t\t\tresult.format = value\n\t\tcase \"minLength\":\n\t\t\tv, err := parseNonnegativeInt(value)\n\t\t\tif err != nil {\n\t\t\t\treturn result, fmt.Errorf(\"schema minLength: %w\", err)\n\t\t\t}\n\t\t\tresult.minLength = &v\n\t\tcase \"maxLength\":\n\t\t\tv, err := parseNonnegativeInt(value)\n\t\t\tif err != nil {\n\t\t\t\treturn result, fmt.Errorf(\"schema maxLength: %w\", err)\n\t\t\t}\n\t\t\tresult.maxLength = &v\n\t\tcase \"minimum\":\n\t\t\tv, err := parseFiniteFloat(value)\n\t\t\tif err != nil {\n\t\t\t\treturn result, fmt.Errorf(\"schema minimum: %w\", err)","sourceCodeStart":433,"sourceCodeEnd":469,"githubUrl":"https://github.com/larksuite/cli/blob/7fd6ef3c07182257ce776cdc5a614e122d5bd4b3/shortcuts/common/typed_compile_args.go#L433-L469","documentation":"Schema tag guard: the format token was given without a format name.","triggerScenarios":"Thrown at shortcuts/common/typed_compile_args.go:451 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Supply the format name, e.g. format:\"date-time\""],"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"}