class RopenPi::Specs::ExtendedTypeAttribute
Public Class Methods
validate(current_schema, data, fragments, processor, validator, options = {})
click to toggle source
Calls superclass method
# File lib/ropen_pi/specs/extended_schema.rb, line 8 def self.validate(current_schema, data, fragments, processor, validator, options = {}) schema_nullable = (current_schema.schema['nullable'] == true || current_schema.schema['x-nullable'] == true) return if data.nil? && schema_nullable super end