dry-schema 1.9.1 → 1.9.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 +4 -4
- data/CHANGELOG.md +15 -1
- data/README.md +1 -1
- data/dry-schema.gemspec +1 -1
- data/lib/dry/schema/extensions/json_schema/schema_compiler.rb +2 -2
- data/lib/dry/schema/messages/yaml.rb +2 -2
- data/lib/dry/schema/processor.rb +1 -1
- data/lib/dry/schema/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c27dabeb33b1644739f90d7bbac22dfe85ae79d742da8376cad64bdfff46c514
|
4
|
+
data.tar.gz: 5b4df5b8215933c70fd3c04fd3a8cd74c0ff7bdfe4919110f95753348ce28726
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9111228ae652344f54044d93fd7516d67cdefa0789587b786d58291d40f9c61c009207c5b3ef68d7302e8e889a125e51fbd4bfa3a5ee6b8b2629a2e06cf7a538
|
7
|
+
data.tar.gz: bc1701018a9c35fb618c92a50fb4d68f24957f3d22431e343457dba65645d6476a5c7378620fe934b8520cfd20d62a2d2de1ac5c04af1f0130dfba5de86cb2f9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
|
2
2
|
|
3
|
+
## 1.9.2 2022-05-28
|
4
|
+
|
5
|
+
|
6
|
+
### Fixed
|
7
|
+
|
8
|
+
- Fix loose JSON schemas for nested hashes (via #401) (@tomdalling)
|
9
|
+
- Correct spelling error 'mininum' to 'minimum' in json-schema extension (via #404) (@svenanderzen)
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- [performance] YAML message backend allocates less strings (via #399) (@casperisfine)
|
14
|
+
|
15
|
+
[Compare v1.9.1...v1.9.2](https://github.com/dry-rb/dry-schema/compare/v1.9.1...v1.9.2)
|
16
|
+
|
3
17
|
## 1.9.1 2022-02-17
|
4
18
|
|
5
19
|
|
@@ -146,7 +160,7 @@ This release ships with a bunch of internal refactorings that should improve per
|
|
146
160
|
- Key validation works correctly with a non-nested maybe hashes (issue #311 fixed via #312) (@svobom57)
|
147
161
|
|
148
162
|
|
149
|
-
[Compare v1.5.3...
|
163
|
+
[Compare v1.5.3...main](https://github.com/dry-rb/dry-schema/compare/v1.5.3...main)
|
150
164
|
|
151
165
|
## 1.5.3 2020-08-21
|
152
166
|
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
[][actions]
|
12
12
|
[][codacy]
|
13
13
|
[][codacy]
|
14
|
-
[][inchpages]
|
15
15
|
|
16
16
|
## Links
|
17
17
|
|
data/dry-schema.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.require_paths = ["lib"]
|
28
28
|
|
29
29
|
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
30
|
-
spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-schema/blob/
|
30
|
+
spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-schema/blob/main/CHANGELOG.md"
|
31
31
|
spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-schema"
|
32
32
|
spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-schema/issues"
|
33
33
|
|
@@ -47,7 +47,7 @@ module Dry
|
|
47
47
|
pattern: "^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$"
|
48
48
|
},
|
49
49
|
gt?: {exclusiveMinimum: IDENTITY},
|
50
|
-
gteq?: {
|
50
|
+
gteq?: {minimum: IDENTITY},
|
51
51
|
lt?: {exclusiveMaximum: IDENTITY},
|
52
52
|
lteq?: {maximum: IDENTITY},
|
53
53
|
odd?: {type: "integer", not: {multipleOf: 2}},
|
@@ -88,7 +88,7 @@ module Dry
|
|
88
88
|
|
89
89
|
# @api private
|
90
90
|
def visit_set(node, opts = EMPTY_HASH)
|
91
|
-
target = (key = opts[:key]) ? self.class.new : self
|
91
|
+
target = (key = opts[:key]) ? self.class.new(loose: loose?) : self
|
92
92
|
|
93
93
|
node.map { |child| target.visit(child, opts) }
|
94
94
|
|
@@ -39,10 +39,10 @@ module Dry
|
|
39
39
|
super do |config|
|
40
40
|
config.default_locale = :en unless config.default_locale
|
41
41
|
|
42
|
-
config.root = "%<locale>s.#{config.root}"
|
42
|
+
config.root = -"%<locale>s.#{config.root}"
|
43
43
|
|
44
44
|
config.rule_lookup_paths = config.rule_lookup_paths.map { |path|
|
45
|
-
"%<locale>s.#{path}"
|
45
|
+
-"%<locale>s.#{path}"
|
46
46
|
}
|
47
47
|
end
|
48
48
|
end
|
data/lib/dry/schema/processor.rb
CHANGED
data/lib/dry/schema/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -237,10 +237,10 @@ licenses:
|
|
237
237
|
- MIT
|
238
238
|
metadata:
|
239
239
|
allowed_push_host: https://rubygems.org
|
240
|
-
changelog_uri: https://github.com/dry-rb/dry-schema/blob/
|
240
|
+
changelog_uri: https://github.com/dry-rb/dry-schema/blob/main/CHANGELOG.md
|
241
241
|
source_code_uri: https://github.com/dry-rb/dry-schema
|
242
242
|
bug_tracker_uri: https://github.com/dry-rb/dry-schema/issues
|
243
|
-
post_install_message:
|
243
|
+
post_install_message:
|
244
244
|
rdoc_options: []
|
245
245
|
require_paths:
|
246
246
|
- lib
|
@@ -255,8 +255,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
255
|
- !ruby/object:Gem::Version
|
256
256
|
version: '0'
|
257
257
|
requirements: []
|
258
|
-
rubygems_version: 3.
|
259
|
-
signing_key:
|
258
|
+
rubygems_version: 3.2.32
|
259
|
+
signing_key:
|
260
260
|
specification_version: 4
|
261
261
|
summary: Coercion and validation for data structures
|
262
262
|
test_files: []
|
263
|
+
...
|