lib/avro/builder/field.rb in avro-builder-0.3.2 vs lib/avro/builder/field.rb in avro-builder-0.4.0
- old
+ new
@@ -39,9 +39,10 @@
builder.lookup_named_type(type_name)
end
# DSL calls must be evaluated after the type has been constructed
instance_eval(&block) if block_given?
+ @type.validate!
end
## Delegate additional DSL calls to the type
def respond_to_missing?(id, include_all = false)