Skip to content

Commit

Permalink
AVRO-2035: Java: validate default values when parsing schemas.
Browse files Browse the repository at this point in the history
  • Loading branch information
cutting committed Jun 22, 2017
1 parent 528a1c8 commit e5ae42e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Trunk (not yet released)

INCOMPATIBLE CHANGES

AVRO-2035: Java: validate default values when parsing schemas. (cutting)

NEW FEATURES

AVRO-1704: Java: Add support for single-message encoding. (blue)
Expand Down
2 changes: 1 addition & 1 deletion lang/java/avro/src/main/java/org/apache/avro/Schema.java
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ private static class NullSchema extends Schema {
public static class Parser {
private Names names = new Names();
private boolean validate = true;
private boolean validateDefaults = false;
private boolean validateDefaults = true;

/** Adds the provided types to the set of defined, named types known to
* this parser. */
Expand Down

0 comments on commit e5ae42e

Please sign in to comment.