Skip to content

Commit

Permalink
fix: Removed allErrors falg from PROD env (#4614)
Browse files Browse the repository at this point in the history
Signed-off-by: Hrishav <hrishav.kumar@harness.io>
Co-authored-by: Saranya Jena <saranya.jena@harness.io>
  • Loading branch information
hrishavjha and Saranya-jena committed May 15, 2024
1 parent bd6c3cd commit 9b91eb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function ExperimentYamlBuilderView({ setError, setHasFaults }: ExperimentYamlBui
const experimentHandler = experimentYamlService.getInfrastructureTypeHandler(infrastructureType);
const schema = getExperimentSchema(infrastructureType);
const [currentExperiment, setCurrentExperiment] = React.useState<Experiment | undefined>();
const ajv = new Ajv({ allErrors: true, strict: false });
const ajv = new Ajv({ allErrors: process.env.NODE_ENV !== 'production', strict: false });

const validateYaml = React.useCallback(
(updatedYaml: string, save?: boolean) => {
Expand Down

0 comments on commit 9b91eb7

Please sign in to comment.