You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final ObjectMapper mapper = new ObjectMapper();
final JsonSchemaGenerator generator = new JsonSchemaGenerator(mapper);
final JsonSchema schema = generator.generateSchema(Double.class);
mapper.writeValue(System.out, schema);
at version 2.4.0/2.4.1 result:
{"type":"integer"}
at version 2.3.4 result:
{"type":"number"}
The text was updated successfully, but these errors were encountered:
public class T {
public final int x;
public final double y;
}
schema generator:
final ObjectMapper mapper = new ObjectMapper();
final JsonSchemaGenerator generator = new JsonSchemaGenerator(mapper);
final JsonSchema schema = generator.generateSchema(T.class);
mapper.writeValue(System.out, schema);
Actual fix is in jackson-databind, but with 2.4.4 release it should be resolved. There is one residual problem with BigDecimal/BigInteger, which will be fully fixed in 2.5.0.
HI!
at version 2.4.0/2.4.1 result:
at version 2.3.4 result:
The text was updated successfully, but these errors were encountered: