Method: JSONSchemer::OpenAPI30::Vocab::Base::Type#parse
- Defined in:
- lib/json_schemer/openapi30/vocab/base.rb
#parse ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/json_schemer/openapi30/vocab/base.rb', line 7 def parse if schema.value['nullable'] == true (Array(value) + ['null']).uniq else super end end |