-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor data class field names to match the desired serialized JSON
keys - the jackson lib in Spring Boot 2.2.1 serializes booleans like: isCertificateAuthority => certificate_authority - but this behavior will be changed in Spring Boot 2.2.4's jackson lib: FasterXML/jackson-module-kotlin#80 - this commit makes the code work for both current & future versions of jackson lib
- Loading branch information
Peter Chen
committed
May 4, 2020
1 parent
ca15216
commit f0a7a46
Showing
12 changed files
with
50 additions
and
50 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
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
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
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
6 changes: 3 additions & 3 deletions
6
components/management/src/main/kotlin/org/cloudfoundry/credhub/Management.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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
package org.cloudfoundry.credhub | ||
|
||
class Management { | ||
var isReadOnlyMode: Boolean = false | ||
var readOnlyMode: Boolean = false | ||
|
||
constructor() : super() { | ||
// no arg constructor required by Jackson | ||
} | ||
|
||
constructor(readOnlyMode: Boolean?) : super() { | ||
this.isReadOnlyMode = readOnlyMode!! | ||
this.readOnlyMode = readOnlyMode!! | ||
} | ||
|
||
override fun toString(): String { | ||
return "isReadOnly: $isReadOnlyMode" | ||
return "isReadOnly: $readOnlyMode" | ||
} | ||
} |