statelint 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 151bae7670a4347bc24b0f62c16af36bc25d917f
4
- data.tar.gz: ba54a7a1c0dad5a184b295c1595fc0cd5ee110c4
3
+ metadata.gz: 83cf5707431888af8653e736364be7ad28ae7a5a
4
+ data.tar.gz: b1feea27017f4e8bd3285cbc360531ba21c9103e
5
5
  SHA512:
6
- metadata.gz: 0977806410595d37191bccd4f5e8d98b40036ec43eceecbe757e3eb817ca6f4e3c6edf9a1d11f5d79b5c7cdf459a8a63c8e62e92cba552440f4910a982aa2b8b
7
- data.tar.gz: a9783ce4cd223c9200ea742b7677050e8af1aa9305b3d8397622993f7570de7dfee5e3929609b0a3a338bcd00c45ec9095c392e9617d7beaf10fe9978fb75a9c
6
+ metadata.gz: aed7e855cc467b5201649e337899c39c998f2cc928a35ccebe4d2c885ff060eeb3c51fb3e598b84a7b42a34b7e522953e4c811de11c5a87ac356741436f8a009
7
+ data.tar.gz: 8672c7fa044d72b2974d8e8d990a1cd9d45585699158b6eb5a85146885366a8fffe5b9dae460b437f8343eca01e621882588d96c10b091ef04cb802dffc578e0
data/bin/statelint CHANGED
@@ -26,6 +26,8 @@ ARGV.each do |file|
26
26
  problems.each do |problem|
27
27
  puts " #{problem}"
28
28
  end
29
+
30
+ exit 1
29
31
  end
30
32
  end
31
33
 
@@ -19,11 +19,10 @@ Each of a Succeed State and a Fail State is a "Terminal State".
19
19
  A State which is not a Terminal State or a Choice State MUST have a string field named "Next".
20
20
  A Terminal State MUST NOT have a field named "Next".
21
21
  A State MAY have a nullable-JSONPath field named "InputPath".
22
- A State MAY have a nullable-referencePath field named "ResultPath".
22
+ Each of a Pass State, a Task State, a Wait State, and a Parallel State MAY have a nullable-referencePath field named "ResultPath".
23
23
  A State MAY have a nullable-JSONPath field named "OutputPath".
24
24
  A Pass State MAY have a field named "Result".
25
25
  A Fail State MUST NOT have a field named "InputPath".
26
- A Fail State MUST NOT have a field named "ResultPath".
27
26
  A Fail State MUST NOT have a field named "OutputPath".
28
27
  A Fail State MAY have a string field named "Cause".
29
28
  A Fail State MAY have a string field named "Error".
@@ -31,12 +30,12 @@ Each of a Task State and a Parallel State MAY have an object-array field named "
31
30
  A Task State MUST have a URI field named "Resource".
32
31
  A Task State MAY have a positive-integer field named "TimeoutSeconds" whose value MUST be less than 99999999.
33
32
  A Task State MAY have a positive-integer field named "HeartbeatSeconds" whose value MUST be less than 99999999.
34
- A Retrier MUST have a string-array field named "ErrorEquals".
33
+ A Retrier MUST have a nonempty-string-array field named "ErrorEquals".
35
34
  A Retrier MAY have an positive-integer field named "IntervalSeconds".
36
35
  A Retrier MAY have a nonnegative-integer field named "MaxAttempts" whose value MUST be less than 99999999.
37
36
  A Retrier MAY have a float field named "BackoffRate" whose value MUST be greater than or equal to 1.0.
38
37
  Each of a Task State and a Parallel State MAY have an object-array field named "Catch"; each element is a "Catcher".
39
- A Catcher MUST have an string-array field named "ErrorEquals".
38
+ A Catcher MUST have an nonempty-string-array field named "ErrorEquals".
40
39
  A Catcher MUST have a string field named "Next".
41
40
  A Catcher MAY have a nullable-referencePath field named "ResultPath".
42
41
  A Choice State MUST have a nonempty-object-array field named "Choices"; each element is a "Choice Rule".
data/statelint.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'statelint'
3
- s.version = '0.1.1'
3
+ s.version = '0.1.2'
4
4
  s.date = '2016-09-28'
5
5
  s.summary = "State Machine JSON validator"
6
6
  s.description = "Validates a JSON object representing a State Machine"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statelint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Bray