-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix default array issue. We can only support basic defaults for field types, and should ignore any more complicated defaults for now. Closes #312
- Loading branch information
Showing
4 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/test/resources/examples/defaultValues/models/PersonWithDefaultsIgnoredObjectDefault.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package examples.defaultValues.models | ||
|
||
import com.fasterxml.jackson.`annotation`.JsonProperty | ||
import kotlin.Int | ||
import kotlin.String | ||
|
||
public data class PersonWithDefaultsIgnoredObjectDefault( | ||
@param:JsonProperty("name") | ||
@get:JsonProperty("name") | ||
public val name: String? = null, | ||
@param:JsonProperty("age") | ||
@get:JsonProperty("age") | ||
public val age: Int? = null, | ||
) |