Class: OpenApi::Rswag::Specs::ExtendedTypeAttribute

Inherits:
JSON::Schema::TypeV4Attribute
  • Object
show all
Defined in:
lib/open_api/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
22
# File 'lib/open_api/rswag/specs/extended_schema.rb', line 18

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

  super
end