We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b1bded commit 373c352Copy full SHA for 373c352
Gemfile.lock
@@ -1,7 +1,7 @@
1
PATH
2
remote: .
3
specs:
4
- json_schematize (0.11.0)
+ json_schematize (0.13.0)
5
class_composer (>= 1.0)
6
7
GEM
lib/json_schematize/introspect_instance_methods.rb
@@ -9,6 +9,8 @@ def to_h
9
[field.name, value.map(&:to_h)]
10
elsif value.class == Class
11
[field.name, value.to_s]
12
+ elsif value.class == JsonSchematize::EmptyValue
13
+ [field.name, nil]
14
elsif JsonSchematize::Generator > value.class
15
[field.name, value.to_h]
16
else
lib/json_schematize/version.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true
module JsonSchematize
- VERSION = "0.12.0"
+ VERSION = "0.13.0"
end
0 commit comments