We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96003c8 commit 1420a40Copy full SHA for 1420a40
src/cmd/validate-values.ts
@@ -1,4 +1,4 @@
1
-import Ajv, { DefinedError, ValidateFunction } from 'ajv'
+import Ajv, { ValidateFunction } from 'ajv'
2
import { unset } from 'lodash'
3
import { prepareEnvironment } from 'src/common/cli'
4
import { terminal } from 'src/common/debug'
@@ -49,15 +49,7 @@ export const validateValues = async (envDir = env.ENV_DIR): Promise<void> => {
49
if (val) {
50
d.log('Values validation SUCCESSFUL')
51
} else {
52
- validate.errors?.map((error: DefinedError) =>
53
- d.error('%O', {
54
- keyword: error.keyword,
55
- dataPath: error.instancePath,
56
- schemaPath: error.schemaPath,
57
- params: error.params,
58
- message: error.message,
59
- }),
60
- )
+ d.error(JSON.stringify(validate.errors, null, 2))
61
throw new Error('Values validation FAILED')
62
}
63
0 commit comments