{"record":{"id":"2234cf363b535be1","repo":"hashicorp/nomad","slug":"description-longer-than-d-2234cf","errorCode":null,"errorMessage":"description longer than %d","messagePattern":"description longer than (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/structs/node_pool.go","lineNumber":91,"sourceCode":"\n\t// Raft indexes.\n\tCreateIndex uint64\n\tModifyIndex uint64\n}\n\n// GetID implements the IDGetter interface required for pagination.\nfunc (n *NodePool) GetID() string {\n\treturn n.Name\n}\n\n// Validate returns an error if the node pool is invalid.\nfunc (n *NodePool) Validate() error {\n\tvar mErr *multierror.Error\n\n\tmErr = multierror.Append(mErr, ValidateNodePoolName(n.Name))\n\n\tif len(n.Description) > maxNodePoolDescriptionLength {\n\t\tmErr = multierror.Append(mErr, fmt.Errorf(\"description longer than %d\", maxNodePoolDescriptionLength))\n\t}\n\n\tmErr = multierror.Append(mErr, n.SchedulerConfiguration.Validate())\n\n\treturn mErr.ErrorOrNil()\n}\n\n// Canonicalize is used to set default values for the node pool. This currently\n// only sets the default TTL for node identities if it is not set.\nfunc (n *NodePool) Canonicalize() {\n\tif n == nil {\n\t\treturn\n\t}\n\n\tif n.NodeIdentityTTL == 0 {\n\t\tn.NodeIdentityTTL = DefaultNodePoolNodeIdentityTTL\n\t}\n}","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/structs/node_pool.go#L73-L109","documentation":"NodePool.Validate found a description longer than the 256-character maximum allowed for node pool descriptions.","triggerScenarios":"Thrown at nomad/structs/node_pool.go:91 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Shorten the description to 256 characters or fewer"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"482b49bf1aec006f089bcfc7e632d8f6ac303e5e","analyzedAt":"2026-09-04T07:54:14.808Z","contentChangedAt":"2026-09-04T07:54:14.808Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}