Class: JSON::Schema::Null
Overview
The JSON::Schema::Null class represents a null value in a JSON schema. It is a subclass of JSON::Schema::Leaf.
Instance Method Summary collapse
Methods inherited from Leaf
#const, #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
9 10 11 |
# File 'lib/json/schema/null.rb', line 9 def to_h super.merge!({type: "null"}) end |