/[Apache-SVN]
ViewVC logotype

Revision 1718715


Jump to revision: Previous Next
Author: blue
Date: Tue Dec 8 21:34:42 2015 UTC (8 years, 4 months ago)
Changed paths: 4
Log Message:
AVRO-1767: Fall back to unwrapped union values. Contributed by Matthieu Monsch.

Previously, union wrapping during `type.clone` calls would be done in
place of normal copy. Now it is done as a backup if a normal copy fails.
This is more consistent with the documentation, and makes it much
simpler to wrap nested unions.

Other changes:

+ Add an optional argument to `type.getName` to expose built-in type
  names (useful to implement an "optional" logical type for example).
+ Document (and rename) `assertLogicalTypes` parsing option.
+ Tweak logical type validity check, enabling error hooks to work even
  when a logical type is valid for a subset of its underlying type's
  values (e.g.  when defining an "even integer" type). Previously the
  path would have been correct but the type would have been that of the
  underlying one.

Changed paths

Path Details
Directoryavro/trunk/CHANGES.txt modified , text changed
Directoryavro/trunk/lang/js/doc/API.md modified , text changed
Directoryavro/trunk/lang/js/lib/schemas.js modified , text changed
Directoryavro/trunk/lang/js/test/test_schemas.js modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26