diff --git a/package-lock.json b/package-lock.json index 416a760..1c2c0d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18683,7 +18683,7 @@ }, "packages/validation": { "name": "@user-office-software/duo-validation", - "version": "5.1.2", + "version": "5.1.3", "license": "ISC", "dependencies": { "luxon": "^2.5.0", diff --git a/packages/validation/package.json b/packages/validation/package.json index 5b02d0b..c17c84f 100644 --- a/packages/validation/package.json +++ b/packages/validation/package.json @@ -1,6 +1,6 @@ { "name": "@user-office-software/duo-validation", - "version": "5.1.2", + "version": "5.1.3", "description": "Duo frontend and backend validation in one place.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/validation/src/Technique/index.ts b/packages/validation/src/Technique/index.ts index 32854ab..451ca34 100644 --- a/packages/validation/src/Technique/index.ts +++ b/packages/validation/src/Technique/index.ts @@ -14,7 +14,7 @@ export const createTechniqueValidationSchema = Yup.object().shape({ }); export const updateTechniqueValidationSchema = Yup.object().shape({ - techniqueId: Yup.number().required(), + id: Yup.number().required(), name: Yup.string() .max(100, 'Name of the technique should be no longer than 100 characters') .required('Name of the technique is required'), @@ -28,7 +28,7 @@ export const updateTechniqueValidationSchema = Yup.object().shape({ }); export const deleteTechniqueValidationSchema = Yup.object().shape({ - techniqueId: Yup.number().required(), + id: Yup.number().required(), }); export const assignInstrumentsToTechniqueValidationSchema = Yup.object().shape({