json_schema-faker 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +31 -26
- data/VERSION +1 -1
- data/json_schema-faker.gemspec +1 -1
- data/lib/json_schema/faker/util.rb +2 -2
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a4f6fbdc7ca4c32a0a702ccfb5736acbcdefc121f6498deebd896ab80e1d723e
|
4
|
+
data.tar.gz: 7891a2f2e045b2e12bbb2d0766bd5fb0ee852665d814d2b72da16990b25596bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53041ee71b24a655fb688813223f21ebb441cb829610421f322fd5a3470ed4ccc53b208ee48b798033f03812f04012569d826f1011fcc9cb9f80f9d723aa691f
|
7
|
+
data.tar.gz: 14b6f30ccb927e521aaf129c856ba1e2396a289a250dd9c2a63c876e154772343a7dab4a9ec4062f00f211752773c043874377364018f53a7e620668a27f7e11
|
data/CHANGELOG.md
CHANGED
@@ -1,55 +1,60 @@
|
|
1
|
+
## 0.6.2
|
2
|
+
|
3
|
+
- Fixed
|
4
|
+
- #16
|
5
|
+
|
1
6
|
## 0.6.1
|
2
7
|
|
3
|
-
|
4
|
-
|
8
|
+
- Fixed
|
9
|
+
- hint-example descending
|
5
10
|
|
6
11
|
## 0.6.0
|
7
12
|
|
8
|
-
|
9
|
-
|
10
|
-
|
13
|
+
- Added
|
14
|
+
- support of default faker against format
|
15
|
+
- support for copying format in take_logical_and_of_schema
|
11
16
|
|
12
17
|
## 0.5.2
|
13
18
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
19
|
+
- Added
|
20
|
+
- support of schema dependency for JsonSchema::Faker::Strategy::Simple
|
21
|
+
- validate default and return only if valid
|
22
|
+
- Fixed
|
23
|
+
- fixes bug of disruption in JsonSchema::Faker::Util.take_logical_and_of_schema
|
24
|
+
- fixes bug of not merged in JsonSchema::Faker::Strategy::Simple#compact_schema
|
20
25
|
|
21
26
|
## 0.5.1
|
22
27
|
|
23
|
-
|
24
|
-
|
28
|
+
- Added
|
29
|
+
- support for copying pattern in take_logical_and_of_schema
|
25
30
|
|
26
31
|
## 0.5.0
|
27
32
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
33
|
+
- Added
|
34
|
+
- ::JsonSchema::Faker::Util. utility for json_schema
|
35
|
+
- Removed
|
36
|
+
- ::JsonSchema::Faker::Strategy::Simple.merge_schema! is removed. use ::JsonSchema::Faker::Util.take_logical_and_of_schema instead.
|
32
37
|
|
33
38
|
## 0.4.0
|
34
39
|
|
35
|
-
|
36
|
-
|
40
|
+
- Added
|
41
|
+
- Greedy strategy to use properties as much as possible (suitable to response generation)
|
37
42
|
|
38
43
|
## 0.3.0
|
39
44
|
|
40
|
-
|
41
|
-
|
45
|
+
- Added
|
46
|
+
- can add faker to format
|
42
47
|
|
43
48
|
## 0.2.0
|
44
49
|
|
45
|
-
|
46
|
-
|
50
|
+
- Added
|
51
|
+
- support example as hint
|
47
52
|
|
48
53
|
## 0.1.1
|
49
54
|
|
50
|
-
|
51
|
-
|
55
|
+
- Added
|
56
|
+
- refactor and improve generation
|
52
57
|
|
53
58
|
## 0.1.0
|
54
59
|
|
55
|
-
|
60
|
+
- initial release
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/json_schema-faker.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.add_dependency "pxeger"
|
20
20
|
spec.add_dependency "faker"
|
21
21
|
|
22
|
-
spec.add_development_dependency "bundler"
|
22
|
+
spec.add_development_dependency "bundler"
|
23
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
24
24
|
|
25
25
|
# test
|
@@ -105,7 +105,7 @@ class JsonSchema::Faker
|
|
105
105
|
a.additonal_items = false
|
106
106
|
else
|
107
107
|
if b.additional_items.is_a?(::JsonSchema::Schema)
|
108
|
-
if a.additional_items.is_a?(::
|
108
|
+
if a.additional_items.is_a?(::JsonSchema::Schema)
|
109
109
|
::JsonSchema::Faker::Configuration.logger.warn "not support merging additionalItems" if ::JsonSchema::Faker::Configuration.logger
|
110
110
|
else
|
111
111
|
a.additional_items = b.additional_items
|
@@ -157,7 +157,7 @@ class JsonSchema::Faker
|
|
157
157
|
a.additional_properties = false
|
158
158
|
else
|
159
159
|
if b.additional_properties.is_a?(::JsonSchema::Schema)
|
160
|
-
if a.additional_properties.is_a?(::
|
160
|
+
if a.additional_properties.is_a?(::JsonSchema::Schema)
|
161
161
|
::JsonSchema::Faker::Configuration.logger.warn "not support merging additionalProperties" if ::JsonSchema::Faker::Configuration.logger
|
162
162
|
else
|
163
163
|
a.additional_properties = b.additional_properties
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_schema-faker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- okitan
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_schema
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -197,7 +197,7 @@ homepage: https://github.com/okitan/json_schema-faker
|
|
197
197
|
licenses:
|
198
198
|
- MIT
|
199
199
|
metadata: {}
|
200
|
-
post_install_message:
|
200
|
+
post_install_message:
|
201
201
|
rdoc_options: []
|
202
202
|
require_paths:
|
203
203
|
- lib
|
@@ -212,9 +212,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
212
|
- !ruby/object:Gem::Version
|
213
213
|
version: '0'
|
214
214
|
requirements: []
|
215
|
-
|
216
|
-
|
217
|
-
signing_key:
|
215
|
+
rubygems_version: 3.1.6
|
216
|
+
signing_key:
|
218
217
|
specification_version: 4
|
219
218
|
summary: generate fake data from json schema
|
220
219
|
test_files: []
|