From 68986fba3ac6369d8f090fafe66b2cc9b9fcca44 Mon Sep 17 00:00:00 2001 From: Maurits Lourens Date: Mon, 17 Jan 2022 23:23:36 +0100 Subject: [PATCH] fix schema constraint mapping to validation rule --- packages/client/src/components/app/forms/validation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/app/forms/validation.js b/packages/client/src/components/app/forms/validation.js index 4e06a640e9..c98ca8467a 100644 --- a/packages/client/src/components/app/forms/validation.js +++ b/packages/client/src/components/app/forms/validation.js @@ -37,7 +37,7 @@ export const createValidatorFromConstraints = ( const length = schemaConstraints.length.maximum rules.push({ type: "string", - constraint: "length", + constraint: "maxLength", value: length, error: `Maximum length is ${length}`, })