Class: Openapi::Rswag::Specs::ExtendedTypeAttribute

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

Class Method Summary collapse

Class Method Details

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



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

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