Class: Rswag::Specs::ExtendedTypeAttribute

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

Class Method Summary collapse

Class Method Details

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



17
18
19
20
# File 'lib/rswag/specs/extended_schema.rb', line 17

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