jackson-dataformats-binary icon indicating copy to clipboard operation
jackson-dataformats-binary copied to clipboard

Primitive fields inside unwrapped optional value not considered nullable in schema

Open cowtowncoder opened this issue 9 years ago • 0 comments

(from https://github.com/FasterXML/jackson-dataformat-avro/issues/29 by @osi)

When generating an avro schema, given:

class A {
 @JsonUnwrapped
 public final Optional<B> b;
}

class B {
  public final boolean flag;
}

The generated schema for A does not consider the 'flag' field to be nullable.

cowtowncoder avatar May 06 '16 02:05 cowtowncoder