attributor 6.0 → 6.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
  SHA256:
3
- metadata.gz: 108abdb1d351f95b78cfae24b61bf8e5bf3943626d8badb691e28ce0df23c45d
4
- data.tar.gz: 96f4e678e7bccb85526a7a3788aa2df538902200fcb50b49e0de3a36c5d3778d
3
+ metadata.gz: 1a27077cb0a67b6ab8fdde19c88a993ba648c6deb38d5a83766df49b7199338d
4
+ data.tar.gz: 99bf9996744d757817fd167fa510b462fab6ee1dd3b52992594d06768966bd53
5
5
  SHA512:
6
- metadata.gz: 54217688f13fad04f249aa351062afd490dd3962278f7dbdcc5d31e05bd5df3151fc51a704208a1502d8d9cf67a2382ca10b85f331c577610223a39c7b96caa9
7
- data.tar.gz: 8eb61d8a53f01d2529d1d2f15c77cd9b55a6a0f53f9a9f83db61ee87ae6091761c330ca026759146e05b73b43625fa5f51236e50a98cbee5aa55afe94b6f1c25
6
+ metadata.gz: e91ad1a7759be0e56c66f53bafbe6d22f1a2ce724fc777ade2649987d6bf19d184eb0fc5f43d00dcbf2310bbae72359199f34d25c38aa65cc69f38cc28d33a55
7
+ data.tar.gz: 947764564827d2d05e967f60ccc100d42eedf219fddab8ffff56bb8f61c0264c67e9bdd77d3a3585b99d80e5e54f22ef2a6e3424c3ba83549df0932874b0c0af
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Attributor Changelog
2
2
 
3
3
  ## next
4
+ - added support for enum's out of values in json_schema generation
5
+
6
+ ## 6.1 (1/7/2022)
7
+ - added support for enum's out of values in json_schema generation
4
8
 
5
9
  ## 6.0 (22/11/2021)
6
10
  - removed `required_if` support and all of the necessary code.
@@ -135,6 +135,9 @@ module Attributor
135
135
  if hash[:type] == :string && the_format = json_schema_string_format
136
136
  hash[:format] = the_format
137
137
  end
138
+ # Common options
139
+ hash[:enum] = attribute_options[:values] if attribute_options[:values]
140
+
138
141
  hash
139
142
  end
140
143
 
@@ -1,3 +1,3 @@
1
1
  module Attributor
2
- VERSION = '6.0'.freeze
2
+ VERSION = '6.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attributor
3
3
  version: !ruby/object:Gem::Version
4
- version: '6.0'
4
+ version: '6.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep M. Blanquer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-11-22 00:00:00.000000000 Z
12
+ date: 2022-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hashie