Class: Swagalicious::ExtendedTypeAttribute

Inherits:
JSON::Schema::TypeV4Attribute
  • Object
show all
Defined in:
lib/swagalicious/extended_schema.rb

Class Method Summary collapse

Class Method Details

.validate(current_schema, data, fragments, processor, validator, options = {}) ⇒ Object



14
15
16
17
# File 'lib/swagalicious/extended_schema.rb', line 14

def self.validate(current_schema, data, fragments, processor, validator, options={})
  return if data.nil? && (current_schema.schema["null"] == true || current_schema.schema["nullable"] == true)
  super
end