{"id":"6a02b139d0b47ee9","repo":"docker/cli","slug":"invalid-field-key-s","errorCode":null,"errorMessage":"invalid field key %s","messagePattern":"invalid field key (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"opts/network.go","lineNumber":110,"sourceCode":"\t\t\t\tkey, val, err = parseDriverOpt(val)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t\tif netOpt.DriverOpts == nil {\n\t\t\t\t\tnetOpt.DriverOpts = make(map[string]string)\n\t\t\t\t}\n\t\t\t\tnetOpt.DriverOpts[key] = val\n\t\t\tcase gwPriorityOpt:\n\t\t\t\tnetOpt.GwPriority, err = strconv.Atoi(val)\n\t\t\t\tif err != nil {\n\t\t\t\t\tvar numErr *strconv.NumError\n\t\t\t\t\tif errors.As(err, &numErr) {\n\t\t\t\t\t\terr = numErr.Err\n\t\t\t\t\t}\n\t\t\t\t\treturn fmt.Errorf(\"invalid gw-priority (%s): %w\", val, err)\n\t\t\t\t}\n\t\t\tdefault:\n\t\t\t\treturn errors.New(\"invalid field key \" + key)\n\t\t\t}\n\t\t}\n\t\tif len(netOpt.Target) == 0 {\n\t\t\treturn errors.New(\"network name/id is not specified\")\n\t\t}\n\t} else {\n\t\tnetOpt.Target = value\n\t}\n\tn.options = append(n.options, netOpt)\n\treturn nil\n}\n\n// Type returns the type of this option\nfunc (*NetworkOpt) Type() string {\n\treturn \"network\"\n}\n\n// Value returns the networkopts","sourceCodeStart":92,"sourceCodeEnd":128,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/opts/network.go#L92-L128","documentation":"Error \"invalid field key %s\" thrown in docker/cli.","triggerScenarios":"Thrown at opts/network.go:110 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}