govuk_schemas 3.0.0 → 3.0.1

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: c1a7c7e79986243df375449cf4aa6f6253a1122d
4
- data.tar.gz: 8307b3beac9c9d57491a1353fc9b00d570a1a14c
3
+ metadata.gz: f5f754d41edb783275b613740b35f2ffcfe2b71e
4
+ data.tar.gz: 9cb524cf30fa781a9fff7ba22d3b3b6bbf85a6ef
5
5
  SHA512:
6
- metadata.gz: aa4b2a0b936859273872fe296bcd2ccea3aa5fe94efb18044774ab5f1dd1760c6fee1eb20f66f0af65ea55a976db4dc6a7e6394204ed4ea81fe48c3a31635c17
7
- data.tar.gz: fb542c17251b814ada00097d8dc0a5463b424586d71699f615e8d43027fee00118680d5f850bed8eb5a03e108928091ab55a11d32601065397435f68d55ae645
6
+ metadata.gz: 6e377a7e63e201a364ecf6ce7acfefc91e0bfe71bab80c777e24985125f66f76797c4bd2c1e778a73e8fd92c0494ac44cdaa8c8a5fd350c7fe343a17fc7debd6
7
+ data.tar.gz: 94c06814354ffe50ab761205b20c7cb8e0931b3568db8b87729e7eee9686d050f026bc3bc97fe87f17d7c35fb2c6f33c882411a35fd2ffb7f1127ec63086a9ab
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 3.0.1
2
+
3
+ # change order of output when validation errors occur during random example generation
4
+
1
5
  # 3.0.0
2
6
 
3
7
  * Move to block based customisation of randomly generated payloads. This removes the existing methods: `customise_and_validate` and `merge_and_validate`. In additon `GovukSchemas::RandomExample.for_schema(schema)` now returns the payload hash directly.
@@ -99,15 +99,15 @@ module GovukSchemas
99
99
 
100
100
  def error_message(item, errors, customised = false)
101
101
  details = <<~ERR
102
- Validation errors:
102
+ Generated payload:
103
103
  --------------------------
104
104
 
105
- #{JSON.pretty_generate(errors)}
105
+ #{JSON.pretty_generate([item])}
106
106
 
107
- Generated payload:
107
+ Validation errors:
108
108
  --------------------------
109
109
 
110
- #{JSON.pretty_generate([item])}
110
+ #{JSON.pretty_generate(errors)}
111
111
  ERR
112
112
 
113
113
  if customised
@@ -1,4 +1,4 @@
1
1
  module GovukSchemas
2
2
  # @private
3
- VERSION = "3.0.0".freeze
3
+ VERSION = "3.0.1".freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_schemas
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-26 00:00:00.000000000 Z
11
+ date: 2017-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema