{"record":{"id":"807a04ac40835209","repo":"helm/helm","slug":"dependencies-are-not-valid-in-the-chart-file-with","errorCode":null,"errorMessage":"dependencies are not valid in the Chart file with apiVersion '%s'. They are valid in apiVersion '%s'","messagePattern":"dependencies are not valid in the Chart file with apiVersion '(.+?)'\\. They are valid in apiVersion '(.+?)'","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/chart/v3/lint/rules/chartfile.go","lineNumber":202,"sourceCode":"}\n\nfunc validateChartIconPresence(cf *chart.Metadata) error {\n\tif cf.Icon == \"\" {\n\t\treturn errors.New(\"icon is recommended\")\n\t}\n\treturn nil\n}\n\nfunc validateChartIconURL(cf *chart.Metadata) error {\n\tif cf.Icon != \"\" && !govalidator.IsRequestURL(cf.Icon) {\n\t\treturn fmt.Errorf(\"invalid icon URL '%s'\", cf.Icon)\n\t}\n\treturn nil\n}\n\nfunc validateChartDependencies(cf *chart.Metadata) error {\n\tif len(cf.Dependencies) > 0 && cf.APIVersion != chart.APIVersionV3 {\n\t\treturn fmt.Errorf(\"dependencies are not valid in the Chart file with apiVersion '%s'. They are valid in apiVersion '%s'\", cf.APIVersion, chart.APIVersionV3)\n\t}\n\treturn nil\n}\n\nfunc validateChartType(cf *chart.Metadata) error {\n\tif cf.Type != \"\" && cf.APIVersion != chart.APIVersionV3 {\n\t\treturn fmt.Errorf(\"chart type is not valid in apiVersion '%s'. It is valid in apiVersion '%s'\", cf.APIVersion, chart.APIVersionV3)\n\t}\n\treturn nil\n}\n\n// loadChartFileForTypeCheck loads the Chart.yaml\n// in a generic form of a map[string]interface{}, so that the type\n// of the values can be checked\nfunc loadChartFileForTypeCheck(filename string) (map[string]any, error) {\n\tb, err := os.ReadFile(filename)\n\tif err != nil {\n\t\treturn nil, err","sourceCodeStart":184,"sourceCodeEnd":220,"githubUrl":"https://github.com/helm/helm/blob/2a29f1770b62844b27197d2507377361d45ad7c0/internal/chart/v3/lint/rules/chartfile.go#L184-L220","documentation":"Error \"dependencies are not valid in the Chart file with apiVersion '%s'. They are valid in apiVersion '%s'\" thrown in helm/helm.","triggerScenarios":"Thrown at internal/chart/v3/lint/rules/chartfile.go:202 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2a29f1770b62844b27197d2507377361d45ad7c0","analyzedAt":"2026-08-15T22:02:47.490Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}