lib/avro.rb in avro-1.8.2 vs lib/avro.rb in avro-1.9.0

- old
+ new

@@ -30,13 +30,24 @@ def initialize(schm=nil, datum=nil, msg=nil) msg ||= "Not a #{schm.to_s}: #{datum}" super(msg) end end + + class << self + attr_writer :disable_field_default_validation + + def disable_field_default_validation + @disable_field_default_validation ||= + ENV.fetch('AVRO_DISABLE_FIELD_DEFAULT_VALIDATION', '') != '' + end + end end require 'avro/schema' require 'avro/io' require 'avro/data_file' require 'avro/protocol' require 'avro/ipc' require 'avro/schema_normalization' +require 'avro/schema_validator' +require 'avro/schema_compatibility'