diff --git a/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGenerator.scala b/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGenerator.scala index 17e2258..3a72071 100755 --- a/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGenerator.scala +++ b/src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGenerator.scala @@ -700,7 +700,7 @@ class JsonSchemaGenerator } extractDefaultValue(p).map { value => - node.put("default", value.toInt) + node.put("default", value.toDouble) } // Look for @JsonSchemaExamples