fix(04): fix Check Logs Match Count type validation
Changed typeValidation from 'strict' to 'loose' and rightValue from strings to numbers to fix type mismatch error in Switch node conditions. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+8
-12
@@ -1850,14 +1850,13 @@
|
||||
"conditions": {
|
||||
"options": {
|
||||
"caseSensitive": true,
|
||||
"leftValue": "",
|
||||
"typeValidation": "strict"
|
||||
"typeValidation": "loose"
|
||||
},
|
||||
"conditions": [
|
||||
{
|
||||
"id": "count-negative",
|
||||
"leftValue": "={{ $json.matchCount }}",
|
||||
"rightValue": "0",
|
||||
"rightValue": 0,
|
||||
"operator": {
|
||||
"type": "number",
|
||||
"operation": "lt"
|
||||
@@ -1873,14 +1872,13 @@
|
||||
"conditions": {
|
||||
"options": {
|
||||
"caseSensitive": true,
|
||||
"leftValue": "",
|
||||
"typeValidation": "strict"
|
||||
"typeValidation": "loose"
|
||||
},
|
||||
"conditions": [
|
||||
{
|
||||
"id": "count-zero",
|
||||
"leftValue": "={{ $json.matchCount }}",
|
||||
"rightValue": "0",
|
||||
"rightValue": 0,
|
||||
"operator": {
|
||||
"type": "number",
|
||||
"operation": "equals"
|
||||
@@ -1896,14 +1894,13 @@
|
||||
"conditions": {
|
||||
"options": {
|
||||
"caseSensitive": true,
|
||||
"leftValue": "",
|
||||
"typeValidation": "strict"
|
||||
"typeValidation": "loose"
|
||||
},
|
||||
"conditions": [
|
||||
{
|
||||
"id": "count-one",
|
||||
"leftValue": "={{ $json.matchCount }}",
|
||||
"rightValue": "1",
|
||||
"rightValue": 1,
|
||||
"operator": {
|
||||
"type": "number",
|
||||
"operation": "equals"
|
||||
@@ -1919,14 +1916,13 @@
|
||||
"conditions": {
|
||||
"options": {
|
||||
"caseSensitive": true,
|
||||
"leftValue": "",
|
||||
"typeValidation": "strict"
|
||||
"typeValidation": "loose"
|
||||
},
|
||||
"conditions": [
|
||||
{
|
||||
"id": "count-many",
|
||||
"leftValue": "={{ $json.matchCount }}",
|
||||
"rightValue": "1",
|
||||
"rightValue": 1,
|
||||
"operator": {
|
||||
"type": "number",
|
||||
"operation": "gt"
|
||||
|
||||
Reference in New Issue
Block a user