Skip to content

Commit

Permalink
fix default name
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbooms committed Aug 5, 2024
1 parent dbcdeb1 commit 98f59e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/cjbooms/fabrikt/generators/OasDefault.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ sealed class OasDefault {
CodeBlock.of("%S", strValue)
}

data class BigDecimalValue(val numericValue: Number) : OasDefault() {
data class BigDecimalValue(val decimalValue: Number) : OasDefault() {
override fun getDefault(): CodeBlock =
CodeBlock.of("%T($numericValue)", BigDecimal::class)
CodeBlock.of("%T($decimalValue)", BigDecimal::class)
}

data class NumberValue(val numericValue: Number) : OasDefault() {
Expand Down

0 comments on commit 98f59e0

Please sign in to comment.