Method: JsonWorld::DSL::ClassMethods#as_json_schema
- Defined in:
- lib/json_world/dsl.rb
#as_json_schema ⇒ Hash
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/json_world/dsl.rb', line 24 def as_json_schema { '$schema': schema, description: description, links: links_as_json_schema, properties: properties_as_json_schema, required: required_property_names, title: title, }.reject do |_key, value| value.nil? || value.empty? end end |