From dce4114fca280cedd03406ea1dec4b6396d77e09 Mon Sep 17 00:00:00 2001 From: Luiz Motta Date: Tue, 20 Feb 2024 17:37:55 -0300 Subject: [PATCH 1/3] Don't remove the Date values if it has the date-time type --- packages/dmn-runner/src/jsonSchema.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/dmn-runner/src/jsonSchema.ts b/packages/dmn-runner/src/jsonSchema.ts index 4b4e8252ecb..380f9fb902b 100644 --- a/packages/dmn-runner/src/jsonSchema.ts +++ b/packages/dmn-runner/src/jsonSchema.ts @@ -77,6 +77,17 @@ export function removeChangedPropertiesAndAdditionalProperties Date: Tue, 20 Feb 2024 17:51:31 -0300 Subject: [PATCH 2/3] Fix comment --- packages/dmn-runner/src/jsonSchema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dmn-runner/src/jsonSchema.ts b/packages/dmn-runner/src/jsonSchema.ts index 380f9fb902b..ffae3e87096 100644 --- a/packages/dmn-runner/src/jsonSchema.ts +++ b/packages/dmn-runner/src/jsonSchema.ts @@ -77,8 +77,8 @@ export function removeChangedPropertiesAndAdditionalProperties Date: Wed, 21 Feb 2024 10:20:59 -0300 Subject: [PATCH 3/3] Code review --- packages/dmn-runner/src/ajv.ts | 2 +- packages/dmn-runner/src/jsonSchema.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/dmn-runner/src/ajv.ts b/packages/dmn-runner/src/ajv.ts index a11e634c2f4..7d23ade1fda 100644 --- a/packages/dmn-runner/src/ajv.ts +++ b/packages/dmn-runner/src/ajv.ts @@ -50,7 +50,7 @@ import { * ajv: 'date-time' * dmn: 'date and time' */ -enum DmnAjvSchemaFormat { +export enum DmnAjvSchemaFormat { DATE = "date", TIME = "time", DATE_TIME = "date-time", diff --git a/packages/dmn-runner/src/jsonSchema.ts b/packages/dmn-runner/src/jsonSchema.ts index ffae3e87096..cac101e3a0a 100644 --- a/packages/dmn-runner/src/jsonSchema.ts +++ b/packages/dmn-runner/src/jsonSchema.ts @@ -18,7 +18,7 @@ */ import { JSON_SCHEMA_INPUT_SET_PATH, RECURSION_KEYWORD, RECURSION_REF_KEYWORD, X_DMN_TYPE_KEYWORD } from "./constants"; -import { ValidateFunction } from "./ajv"; +import { DmnAjvSchemaFormat, ValidateFunction } from "./ajv"; import { ExtendedServicesDmnJsonSchema, DmnInputFieldProperties, @@ -82,7 +82,7 @@ export function removeChangedPropertiesAndAdditionalProperties