Module: SchemaMatcher::NullablePossibility

Included in:
ExtendedRefAttribute, ExtendedTypeAttribute
Defined in:
lib/schema_matcher/extended_schema.rb

Instance Method Summary collapse

Instance Method Details

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

rubocop:disable Metrics/ParameterLists



18
19
20
21
22
# File 'lib/schema_matcher/extended_schema.rb', line 18

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

  super
end