This is an automated email from the ASF dual-hosted git repository.

thiagoelg pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new 4e4c311d94a kie-issues#3387: DMN Runner missing validation information 
about the number range  (#3388)
4e4c311d94a is described below

commit 4e4c311d94ad80801c9716013d013ac8cdd7d81b
Author: Rajalakshmy S <[email protected]>
AuthorDate: Tue Jan 13 20:02:50 2026 +0530

    kie-issues#3387: DMN Runner missing validation information about the number 
range  (#3388)
    
    Co-authored-by: Rajalakshmy S <[email protected]>
---
 packages/form-dmn/tests/__snapshots__/FormDmn.test.tsx.snap | 12 ++++++++----
 packages/uniforms-patternfly/src/wrapField.tsx              | 13 +++++++++++--
 2 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/packages/form-dmn/tests/__snapshots__/FormDmn.test.tsx.snap 
b/packages/form-dmn/tests/__snapshots__/FormDmn.test.tsx.snap
index 7d064b477a3..68be3ac5c62 100644
--- a/packages/form-dmn/tests/__snapshots__/FormDmn.test.tsx.snap
+++ b/packages/form-dmn/tests/__snapshots__/FormDmn.test.tsx.snap
@@ -756,11 +756,13 @@ exports[`FormDmn tests should validate the formInputs - 
invalid 1`] = `
               class="pf-v5-c-helper-text"
             >
               <div
-                class="pf-v5-c-helper-text__item"
+                class="pf-v5-c-helper-text__item pf-m-error"
               >
                 <span
                   class="pf-v5-c-helper-text__item-text"
-                />
+                >
+                  should match format P1D(ays)T2H(ours)3M(inutes)1S(econds)
+                </span>
               </div>
             </div>
           </div>
@@ -1255,11 +1257,13 @@ exports[`FormDmn tests shouldn't submit the formInputs 
1`] = `
               class="pf-v5-c-helper-text"
             >
               <div
-                class="pf-v5-c-helper-text__item"
+                class="pf-v5-c-helper-text__item pf-m-error"
               >
                 <span
                   class="pf-v5-c-helper-text__item-text"
-                />
+                >
+                  should match format P1D(ays)T2H(ours)3M(inutes)1S(econds)
+                </span>
               </div>
             </div>
           </div>
diff --git a/packages/uniforms-patternfly/src/wrapField.tsx 
b/packages/uniforms-patternfly/src/wrapField.tsx
index fd198dfc416..d639093cec6 100644
--- a/packages/uniforms-patternfly/src/wrapField.tsx
+++ b/packages/uniforms-patternfly/src/wrapField.tsx
@@ -48,9 +48,18 @@ filterDOMProps.register(
   "menuAppendTo"
 );
 
+interface ValidationError {
+  instancePath: string;
+  message: string;
+  keyword: string;
+  params: Record<string, any>;
+  schemaPath?: string;
+  data?: any;
+}
+
 type WrapperProps = {
   id: string;
-  error?: boolean;
+  error?: boolean | ValidationError;
   errorMessage?: string;
   help?: string;
   showInlineError?: boolean;
@@ -99,7 +108,7 @@ export default function wrapField(
       {...filterDOMProps(props)}
     >
       {children}
-      {error === true ? (
+      {error ? (
         <FormHelperText>
           <HelperText>
             <HelperTextItem variant="error">{errorMessage}</HelperTextItem>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to