feat: add question transition first validations

This commit is contained in:
2026-08-01 17:03:17 +03:30
parent bc64643332
commit 0274722f6c
16 changed files with 26 additions and 853 deletions
+8 -2
View File
@@ -12,12 +12,18 @@
"choice": "Choice",
"score": "Score",
"weight": "Weight",
"rangeRule": "Range Rule"
"rangeRule": "Range Rule",
"questionTransition": "Question Transition"
},
"errors": {
"uniqueOrderConstraint": "Order value should be unique.",
"rangeRuleMinMaxConstraint": "min value should be less than max.",
"rangeRuleIntersectionConstraint": "{min} to {max} range has some intersection with other ranges."
"rangeRuleIntersectionConstraint": "{min} to {max} range has some intersection with other ranges.",
"questionTransition": {
"sameQuestion": "fromQuestion and toQuestion are the same",
"fromQuestionNotBelongToTest": "fromQuestion doesnt belong to the test.",
"toQuestionNotBelongToTest": "toQuestion doesnt belong to the test."
}
},
"messages": {
"createSuccess": "Question Created Successfully.",
+8 -2
View File
@@ -12,12 +12,18 @@
"choice": "گزینه",
"score": "نمره",
"weight": "وزن",
"rangeRule": "قانون بازه ای"
"rangeRule": "قانون بازه ای",
"questionTransition": "مسیر سوال"
},
"errors": {
"uniqueOrderConstraint": "مقدار اولویت تکراری است.",
"rangeRuleMinMaxConstraint": "مقدار min باید از max کوچکتر باشد.",
"rangeRuleIntersectionConstraint": "بازه {min} تا {max} با دیگر بازه های تعریف شده تداخل دارد."
"rangeRuleIntersectionConstraint": "بازه {min} تا {max} با دیگر بازه های تعریف شده تداخل دارد.",
"questionTransition": {
"sameQuestion": "سوال مبدا و مقصد یکی است.",
"fromQuestionNotBelongToTest": "سوال مبدا متعلق به تست نیست.",
"toQuestionNotBelongToTest": "سوال مقصد متعلق به تست نیست."
}
},
"messages": {
"createSuccess": "سوال با موفقیت ایجاد شد.",