ljmotta commented on code in PR #2168:
URL: 
https://github.com/apache/incubator-kie-tools/pull/2168#discussion_r1497534083


##########
packages/dmn-runner/src/jsonSchema.ts:
##########
@@ -77,6 +77,17 @@ export function 
removeChangedPropertiesAndAdditionalProperties<T extends Validat
         return;
       }
 
+      // uniforms-patternfly saves the DateTimeField component value as a Date 
object and
+      // AJV handles data-time as a string, causing an error with keyword type.
+      // Also, the ajv.ErrorObject doesn't correctly type the parentSchema 
property
+      if (
+        error.keyword === "type" &&
+        (error.parentSchema as any)?.format === "date-time" &&

Review Comment:
   Great catch! I'll make the change.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to