Class: JSON::Schema::Null
Instance Method Summary collapse
Methods inherited from Leaf
#default, #description, #enum, #initialize, #required, #required?, #to_json
Constructor Details
This class inherits a constructor from JSON::Schema::Leaf
Instance Method Details
#to_h ⇒ Object
5 6 7 |
# File 'lib/json/schema/null.rb', line 5 def to_h super.merge!({type: "null"}) end |