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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/govuk_schemas/random_example.rb +4 -4
- data/lib/govuk_schemas/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5f754d41edb783275b613740b35f2ffcfe2b71e
|
4
|
+
data.tar.gz: 9cb524cf30fa781a9fff7ba22d3b3b6bbf85a6ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
102
|
+
Generated payload:
|
103
103
|
--------------------------
|
104
104
|
|
105
|
-
#{JSON.pretty_generate(
|
105
|
+
#{JSON.pretty_generate([item])}
|
106
106
|
|
107
|
-
|
107
|
+
Validation errors:
|
108
108
|
--------------------------
|
109
109
|
|
110
|
-
#{JSON.pretty_generate(
|
110
|
+
#{JSON.pretty_generate(errors)}
|
111
111
|
ERR
|
112
112
|
|
113
113
|
if customised
|
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.
|
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-
|
11
|
+
date: 2017-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema
|