{"record":{"id":"746aef30fae60abf","repo":"multica-ai/multica","slug":"value-is-required-746aef","errorCode":null,"errorMessage":"value is required","messagePattern":"value is required","errorType":"validation","errorClass":null,"httpStatus":400,"severity":"error","filePath":"server/internal/handler/property.go","lineNumber":305,"sourceCode":"\t\tids[opt.ID] = i\n\t}\n\treturn ids\n}\n\nfunc selectOptionsHint(cfg PropertyConfig) string {\n\tparts := make([]string, len(cfg.Options))\n\tfor i, opt := range cfg.Options {\n\t\tparts[i] = fmt.Sprintf(\"%s (%s)\", opt.ID, opt.Name)\n\t}\n\treturn strings.Join(parts, \", \")\n}\n\n// validatePropertyValue checks a raw JSON value against the definition's type\n// and returns the canonical JSON to store. Error strings enumerate the legal\n// values where possible — agents consume these directly to self-correct.\nfunc validatePropertyValue(def db.IssueProperty, raw json.RawMessage) ([]byte, error) {\n\tif len(raw) == 0 {\n\t\treturn nil, errors.New(\"value is required\")\n\t}\n\tvar v any\n\tif err := json.Unmarshal(raw, &v); err != nil {\n\t\treturn nil, fmt.Errorf(\"value must be valid JSON: %w\", err)\n\t}\n\tif v == nil {\n\t\treturn nil, errors.New(\"value cannot be null (use DELETE to unset a property)\")\n\t}\n\n\tcfg := parsePropertyConfig(def.Config)\n\tswitch def.Type {\n\tcase \"text\":\n\t\ts, ok := v.(string)\n\t\tif !ok {\n\t\t\treturn nil, errors.New(\"value must be a string\")\n\t\t}\n\t\tif strings.TrimSpace(s) == \"\" {\n\t\t\treturn nil, errors.New(\"value cannot be empty (use DELETE to unset a property)\")","sourceCodeStart":287,"sourceCodeEnd":323,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/handler/property.go#L287-L323","documentation":"Error \"value is required\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/handler/property.go:305 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a value for the property."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}