Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asl-validator

Package Overview
Dependencies
Maintainers
2
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asl-validator - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

src/__tests__/definitions/valid-parallel-with-catch.json

4

bin/asl-validator.js

@@ -31,7 +31,7 @@ #!/usr/bin/env node

program
.version(version, '--version')
.version(version, '-v, --version')
.description('Amazon States Language validator')
.option('--json-definition <jsonDefinition>', 'JSON definition')
.option('--json-path <jsonPath>', 'JSON path')
.option('--silent', 'Silent mode')
.option('--silent', 'silent mode')
.parse(process.argv);

@@ -38,0 +38,0 @@

{
"name": "asl-validator",
"version": "1.0.2",
"version": "1.0.3",
"description": "Amazon States Language validator",

@@ -34,4 +34,3 @@ "main": "./src/validator.js",

"ajv": "^5.3.0",
"commander": "^2.11.0",
"jsonpath": "^1.0.0"
"commander": "^2.11.0"
},

@@ -38,0 +37,0 @@ "devDependencies": {

@@ -19,3 +19,3 @@ # asl-validator

```bash
$ asl-validator.js --help
$ asl-validator --help

@@ -29,6 +29,6 @@ Usage: asl-validator [options]

--version output the version number
-v, --version output the version number
--json-definition <jsonDefinition> JSON definition
--json-path <jsonPath> JSON path
--silent Silent mode
--silent silent mode
-h, --help output usage information

@@ -64,4 +64,4 @@ ```

## See also
- [ASL specifications](https://states-language.net)
- [ASL specifications](https://states-language.net/spec.html)
- [ASL documentation on AWS website](http://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html)
- [Blog post](https://www.tbray.org/ongoing/When/201x/2016/12/01/J2119-Validator) from the creator of ASL explaining the pros and cons of a JSON schema based validator. An RFC based looks really interesting, but still the JSON schema approach seems more flexible and evolutive.

@@ -32,2 +32,19 @@ {

}
},
"Catch": {
"type": "array",
"items": {
"types": "object",
"properties": {
"ErrorEquals": {
"type": "array",
"items": {
"types": "string"
}
},
"Next": {
"type": "string"
}
}
}
}

@@ -34,0 +51,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc