asl-validator
Advanced tools
Comparing version 3.4.0 to 3.5.0
@@ -161,16 +161,4 @@ { | ||
}, | ||
"oneOf": [ | ||
{ | ||
"required": [ | ||
"ItemProcessor" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"Iterator" | ||
] | ||
} | ||
], | ||
"required": ["Type"], | ||
"additionalProperties": false | ||
} |
@@ -18,2 +18,4 @@ "use strict"; | ||
StateMachineErrorCode["TaskHeartbeatError"] = "TASK_HEARTBEAT"; | ||
StateMachineErrorCode["MapItemProcessorError"] = "MAP_ITEM_PROCESSOR"; | ||
StateMachineErrorCode["MapItemSelectorError"] = "MAP_ITEM_SELECTOR"; | ||
})(StateMachineErrorCode = exports.StateMachineErrorCode || (exports.StateMachineErrorCode = {})); |
@@ -11,2 +11,3 @@ "use strict"; | ||
var taskChecks_1 = require("./checks/taskChecks"); | ||
var mapChecks_1 = require("./checks/mapChecks"); | ||
var DefaultOptions = { | ||
@@ -28,2 +29,3 @@ checkPaths: true, | ||
errors.push.apply(errors, (0, taskChecks_1.taskChecks)(definition, options)); | ||
errors.push.apply(errors, (0, mapChecks_1.mapChecks)(definition, options)); | ||
} | ||
@@ -30,0 +32,0 @@ return { |
{ | ||
"name": "asl-validator", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"description": "Amazon States Language validator", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/validator.js", |
@@ -161,16 +161,4 @@ { | ||
}, | ||
"oneOf": [ | ||
{ | ||
"required": [ | ||
"ItemProcessor" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"Iterator" | ||
] | ||
} | ||
], | ||
"required": ["Type"], | ||
"additionalProperties": false | ||
} |
@@ -19,2 +19,4 @@ export type State = Record<string, unknown>; | ||
TaskHeartbeatError = 'TASK_HEARTBEAT', | ||
MapItemProcessorError = 'MAP_ITEM_PROCESSOR', | ||
MapItemSelectorError = 'MAP_ITEM_SELECTOR' | ||
} | ||
@@ -21,0 +23,0 @@ export type StateMachineError = { |
@@ -13,2 +13,3 @@ import {ErrorObject} from 'ajv'; | ||
import {taskChecks} from "./checks/taskChecks"; | ||
import {mapChecks} from "./checks/mapChecks"; | ||
@@ -36,2 +37,3 @@ const DefaultOptions: ValidationOptions = { | ||
errors.push(...taskChecks(definition, options)); | ||
errors.push(...mapChecks(definition, options)); | ||
} | ||
@@ -38,0 +40,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
126677
66
3342