Skip to content

Commit babb8da

Browse files
authored
Fix #543: enable Avro Logical Type support for Schema generation by default (#544)
1 parent c994603 commit babb8da

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

avro/src/main/java/tools/jackson/dataformat/avro/schema/VisitorFormatWrapperImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ public class VisitorFormatWrapperImpl
1616
implements JsonFormatVisitorWrapper
1717
{
1818
/**
19-
* Default value for {@link #_logicalTypesEnabled}: {@code false} will be changed to
20-
* {@code true} in 3.0.
19+
* Default value for {@link #_logicalTypesEnabled}: {@code true}
20+
* for Jackson 3.x (was {@code false} for Jackson 2.x.
2121
*/
22-
public static final boolean DEFAULT_LOGICAL_TYPES_ENABLED = false;
22+
public static final boolean DEFAULT_LOGICAL_TYPES_ENABLED = true;
2323

2424
/**
2525
* Default value for {@link #_writeEnumAsString}: {@code false} as of
26-
* Jackson 2.19 and later.
26+
* Jackson 3.0.
2727
*/
2828
public static final boolean DEFAULT_ENUM_AS_STRING = false;
2929

release-notes/VERSION

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ implementations)
2727
`IonGenerator.Feature` as `IonWriteFeature`
2828
#528: JSTEP-8: rename `SmileParser.Feature` as `SmileReadFeature`,
2929
`SmileGenerator.Feature` as `SmileWriteFeature`
30+
#543: (avro) Enable "logical types" support in `AvroSchemaGenerator`
31+
by default (3.0)
3032
- Minimum Java baseline: Java 17

0 commit comments

Comments
 (0)