README.md in avro-builder-0.16.2 vs README.md in avro-builder-0.17.0
- old
+ new
@@ -163,9 +163,12 @@
# Either syntax is supported for specifying symbols
enum :e, :X, :Y, :Z
enum :d, symbols: [:A, :B]
+# defaults can be set for enums with Ruby Avro v1.10.0
+enum :c, symbols: [:A, :B], default: :A
+
record :my_record_with_named do
required :f_ref, :f
required :fixed_inline, :fixed, size: 9
required :e_ref, :e
required :enum_inline, :enum, symbols: [:P, :Q]