Skip to content

Commit

Permalink
[fix] @JsonProperty(defaultValue="...") does not allow float/double v…
Browse files Browse the repository at this point in the history
…alues mbknor#152
  • Loading branch information
Aleksandr Dubinsky committed Oct 31, 2021
1 parent e370f80 commit 391ee58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ class JsonSchemaGenerator
}

extractDefaultValue(p).map { value =>
node.put("default", value.toInt)
node.put("default", value.toDouble)
}

// Look for @JsonSchemaExamples
Expand Down

0 comments on commit 391ee58

Please sign in to comment.