Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kie-issues#1014: KIE Sandbox: Enabling Validation for DMN Assets up to 1.5 #2200

Merged
merged 1 commit into from
Mar 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions packages/online-editor/src/editor/Validation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,22 @@ export function useFileValidation(

const decodedFileContent = decoder.decode(fileContent);
const dmnSpecVersion = dmnLanguageService?.getSpecVersion(decodedFileContent);
if (!dmnSpecVersion || (dmnSpecVersion !== "1.0" && dmnSpecVersion !== "1.1" && dmnSpecVersion !== "1.2")) {
if (
!dmnSpecVersion ||
(dmnSpecVersion !== "1.0" &&
dmnSpecVersion !== "1.1" &&
dmnSpecVersion !== "1.2" &&
dmnSpecVersion !== "1.3" &&
dmnSpecVersion !== "1.4" &&
dmnSpecVersion !== "1.5")
) {
setNotifications(i18n.terms.validation, "", [
{
type: "ALERT",
normalizedPosixPathRelativeToTheWorkspaceRoot: "",
severity: "WARNING",
message:
"Validation checks are temporarily supported only on DMN 1.2 or below. For full access to this feature, use the Legacy DMN Editor.",
"Validation doesn't support this DMN version" + dmnSpecVersion ? "(" + dmnSpecVersion + ")" : "",
},
]);
return;
Expand Down
Loading