From 34f8e17a06a8b58647e8d5e59b9d32d15ef6c8ef Mon Sep 17 00:00:00 2001 From: Peter Somogyvari Date: Tue, 30 Mar 2021 19:31:19 -0700 Subject: [PATCH] fix(connector-corda): regenerate kotlin backend with correct version Previously the kotlin code was being generated with the 5.0.0 version of the openapi generator via their published container image, but then we were forced to stop using that method of invocation because it doesn't work during the build of our own images to call another docker image. This then lead to the sources updating being forgotten and the changes being made by the build every time ever since which will now be resolved. Signed-off-by: Peter Somogyvari --- .../kotlin-spring/.openapi-generator/VERSION | 2 +- .../api/ApiPluginLedgerConnectorCorda.kt | 10 +++++----- .../server/model/CordaNodeSshCredentials.kt | 17 +++++----------- .../corda/server/model/CordaRpcCredentials.kt | 14 ++++--------- .../corda/server/model/CordaX500Name.kt | 10 ++++------ .../server/model/CordappDeploymentConfig.kt | 19 ++++++------------ .../corda/server/model/CordappInfo.kt | 20 +++++++++---------- .../DeployContractJarsBadRequestV1Response.kt | 3 +-- .../DeployContractJarsSuccessV1Response.kt | 3 +-- .../model/DeployContractJarsV1Request.kt | 8 ++------ .../server/model/DiagnoseNodeV1Request.kt | 4 +--- .../server/model/DiagnoseNodeV1Response.kt | 4 +--- .../corda/server/model/FlowInvocationType.kt | 1 - .../server/model/InvokeContractV1Request.kt | 13 ++++-------- .../server/model/InvokeContractV1Response.kt | 7 ++----- .../connector/corda/server/model/JarFile.kt | 11 ++++------ .../connector/corda/server/model/JvmObject.kt | 12 +++-------- .../connector/corda/server/model/JvmType.kt | 8 ++------ .../corda/server/model/JvmTypeKind.kt | 1 - .../corda/server/model/ListFlowsV1Request.kt | 1 - .../corda/server/model/ListFlowsV1Response.kt | 3 +-- .../corda/server/model/NetworkHostAndPort.kt | 5 ++--- .../corda/server/model/NodeDiagnosticInfo.kt | 13 +++++------- .../connector/corda/server/model/NodeInfo.kt | 14 +++++-------- .../connector/corda/server/model/Party.kt | 7 ++----- .../connector/corda/server/model/PublicKey.kt | 7 +++---- .../connector/corda/server/model/SHA256.kt | 7 +++---- .../corda/server/model/X500Principal.kt | 5 ++--- 28 files changed, 78 insertions(+), 151 deletions(-) diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/.openapi-generator/VERSION b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/.openapi-generator/VERSION index 28cbf7c0aa..1a487e1a2e 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/.openapi-generator/VERSION +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/.openapi-generator/VERSION @@ -1 +1 @@ -5.0.0 \ No newline at end of file +5.0.0-beta2 \ No newline at end of file diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/api/ApiPluginLedgerConnectorCorda.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/api/ApiPluginLedgerConnectorCorda.kt index 906a24fd1f..b98061dfa0 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/api/ApiPluginLedgerConnectorCorda.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/api/ApiPluginLedgerConnectorCorda.kt @@ -42,7 +42,7 @@ class ApiPluginLedgerConnectorCordaController(@Autowired(required = true) val se produces = ["application/json"], consumes = ["application/json"] ) - fun deployContractJarsV1( @Valid @RequestBody(required = false) deployContractJarsV1Request: DeployContractJarsV1Request? + fun deployContractJarsV1( @Valid @RequestBody deployContractJarsV1Request: DeployContractJarsV1Request? ): ResponseEntity { return ResponseEntity(service.deployContractJarsV1(deployContractJarsV1Request), HttpStatus.valueOf(200)) } @@ -53,7 +53,7 @@ class ApiPluginLedgerConnectorCordaController(@Autowired(required = true) val se produces = ["application/json"], consumes = ["application/json"] ) - fun diagnoseNodeV1( @Valid @RequestBody(required = false) diagnoseNodeV1Request: DiagnoseNodeV1Request? + fun diagnoseNodeV1( @Valid @RequestBody diagnoseNodeV1Request: DiagnoseNodeV1Request? ): ResponseEntity { return ResponseEntity(service.diagnoseNodeV1(diagnoseNodeV1Request), HttpStatus.valueOf(200)) } @@ -64,7 +64,7 @@ class ApiPluginLedgerConnectorCordaController(@Autowired(required = true) val se produces = ["application/json"], consumes = ["application/json"] ) - fun invokeContractV1( @Valid @RequestBody(required = false) invokeContractV1Request: InvokeContractV1Request? + fun invokeContractV1( @Valid @RequestBody invokeContractV1Request: InvokeContractV1Request? ): ResponseEntity { return ResponseEntity(service.invokeContractV1(invokeContractV1Request), HttpStatus.valueOf(200)) } @@ -75,7 +75,7 @@ class ApiPluginLedgerConnectorCordaController(@Autowired(required = true) val se produces = ["application/json"], consumes = ["application/json"] ) - fun listFlowsV1( @Valid @RequestBody(required = false) listFlowsV1Request: ListFlowsV1Request? + fun listFlowsV1( @Valid @RequestBody listFlowsV1Request: ListFlowsV1Request? ): ResponseEntity { return ResponseEntity(service.listFlowsV1(listFlowsV1Request), HttpStatus.valueOf(200)) } @@ -86,7 +86,7 @@ class ApiPluginLedgerConnectorCordaController(@Autowired(required = true) val se produces = ["application/json"], consumes = ["application/json"] ) - fun networkMapV1( @Valid @RequestBody(required = false) body: kotlin.Any? + fun networkMapV1( @Valid @RequestBody body: kotlin.Any? ): ResponseEntity> { return ResponseEntity(service.networkMapV1(body), HttpStatus.valueOf(200)) } diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordaNodeSshCredentials.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordaNodeSshCredentials.kt index a81aa7e5dc..b6b4bdc70c 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordaNodeSshCredentials.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordaNodeSshCredentials.kt @@ -9,7 +9,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -21,25 +20,19 @@ import javax.validation.Valid */ data class CordaNodeSshCredentials( - @get:NotNull - @get:Size(min=1,max=65535) + @get:NotNull @get:Size(min=1,max=65535) @field:JsonProperty("hostKeyEntry") val hostKeyEntry: kotlin.String, - @get:NotNull - @get:Size(min=1,max=32) + @get:NotNull @get:Size(min=1,max=32) @field:JsonProperty("username") val username: kotlin.String, - @get:NotNull - @get:Size(min=1,max=4096) + @get:NotNull @get:Size(min=1,max=4096) @field:JsonProperty("password") val password: kotlin.String, - @get:NotNull - @get:Size(min=1,max=4096) + @get:NotNull @get:Size(min=1,max=4096) @field:JsonProperty("hostname") val hostname: kotlin.String, - @get:NotNull - @get:Min(1) - @get:Max(65535) + @get:NotNull @get:Min(1) @get:Max(65535) @field:JsonProperty("port") val port: kotlin.Int ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordaRpcCredentials.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordaRpcCredentials.kt index bc6fcb6a07..4ebeb02e03 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordaRpcCredentials.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordaRpcCredentials.kt @@ -9,7 +9,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -20,21 +19,16 @@ import javax.validation.Valid */ data class CordaRpcCredentials( - @get:NotNull - @get:Size(min=1,max=65535) + @get:NotNull @get:Size(min=1,max=65535) @field:JsonProperty("hostname") val hostname: kotlin.String, - @get:NotNull - @get:Min(1) - @get:Max(65535) + @get:NotNull @get:Min(1) @get:Max(65535) @field:JsonProperty("port") val port: kotlin.Int, - @get:NotNull - @get:Size(min=1,max=1024) + @get:NotNull @get:Size(min=1,max=1024) @field:JsonProperty("username") val username: kotlin.String, - @get:NotNull - @get:Size(min=1,max=65535) + @get:NotNull @get:Size(min=1,max=65535) @field:JsonProperty("password") val password: kotlin.String ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordaX500Name.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordaX500Name.kt index 0101f4a293..6e96284639 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordaX500Name.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordaX500Name.kt @@ -10,7 +10,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -24,17 +23,16 @@ import javax.validation.Valid */ data class CordaX500Name( - @get:NotNull + @get:NotNull @field:JsonProperty("organisation") val organisation: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("locality") val locality: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("country") val country: kotlin.String, - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("x500Principal") val x500Principal: X500Principal, @field:JsonProperty("commonName") val commonName: kotlin.String? = null, diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordappDeploymentConfig.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordappDeploymentConfig.kt index e3858e487d..c4f042fed5 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordappDeploymentConfig.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordappDeploymentConfig.kt @@ -11,7 +11,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -24,28 +23,22 @@ import javax.validation.Valid */ data class CordappDeploymentConfig( - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("sshCredentials") val sshCredentials: CordaNodeSshCredentials, - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("rpcCredentials") val rpcCredentials: CordaRpcCredentials, - @get:NotNull - @get:Size(min=1,max=65535) + @get:NotNull @get:Size(min=1,max=65535) @field:JsonProperty("cordaNodeStartCmd") val cordaNodeStartCmd: kotlin.String, - @get:NotNull - @get:Size(min=1,max=2048) + @get:NotNull @get:Size(min=1,max=2048) @field:JsonProperty("cordappDir") val cordappDir: kotlin.String, - @get:NotNull - @get:Size(min=1,max=2048) + @get:NotNull @get:Size(min=1,max=2048) @field:JsonProperty("cordaJarPath") val cordaJarPath: kotlin.String, - @get:NotNull - @get:Size(min=1,max=2048) + @get:NotNull @get:Size(min=1,max=2048) @field:JsonProperty("nodeBaseDirPath") val nodeBaseDirPath: kotlin.String ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordappInfo.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordappInfo.kt index 0b9ae57ad1..de1d42d7e1 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordappInfo.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/CordappInfo.kt @@ -10,7 +10,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * A CordappInfo describes a single CorDapp currently installed on the node @@ -26,32 +25,31 @@ import javax.validation.Valid */ data class CordappInfo( - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("jarHash") val jarHash: SHA256, - @get:NotNull + @get:NotNull @field:JsonProperty("licence") val licence: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("minimumPlatformVersion") val minimumPlatformVersion: kotlin.Int, - @get:NotNull + @get:NotNull @field:JsonProperty("name") val name: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("shortName") val shortName: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("targetPlatformVersion") val targetPlatformVersion: kotlin.Int, - @get:NotNull + @get:NotNull @field:JsonProperty("type") val type: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("vendor") val vendor: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("version") val version: kotlin.String ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DeployContractJarsBadRequestV1Response.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DeployContractJarsBadRequestV1Response.kt index d40556361a..4468dbef0c 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DeployContractJarsBadRequestV1Response.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DeployContractJarsBadRequestV1Response.kt @@ -9,7 +9,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -17,7 +16,7 @@ import javax.validation.Valid */ data class DeployContractJarsBadRequestV1Response( - @get:NotNull + @get:NotNull @field:JsonProperty("errors") val errors: kotlin.collections.List ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DeployContractJarsSuccessV1Response.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DeployContractJarsSuccessV1Response.kt index 3e85d9cac9..d794444e4a 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DeployContractJarsSuccessV1Response.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DeployContractJarsSuccessV1Response.kt @@ -9,7 +9,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -17,7 +16,7 @@ import javax.validation.Valid */ data class DeployContractJarsSuccessV1Response( - @get:NotNull + @get:NotNull @field:JsonProperty("deployedJarFiles") val deployedJarFiles: kotlin.collections.List ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DeployContractJarsV1Request.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DeployContractJarsV1Request.kt index 4169d1d701..05c8b5cf61 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DeployContractJarsV1Request.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DeployContractJarsV1Request.kt @@ -11,7 +11,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -20,13 +19,10 @@ import javax.validation.Valid */ data class DeployContractJarsV1Request( - @get:NotNull - @field:Valid - @get:Size(min=0,max=1024) + @get:NotNull @get:Size(min=0,max=1024) @field:JsonProperty("cordappDeploymentConfigs") val cordappDeploymentConfigs: kotlin.collections.List, - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("jarFiles") val jarFiles: kotlin.collections.List ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DiagnoseNodeV1Request.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DiagnoseNodeV1Request.kt index 1034de0843..634f622f2e 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DiagnoseNodeV1Request.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DiagnoseNodeV1Request.kt @@ -9,15 +9,13 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * * @param nodeIds Optional property specifying which Corda Node should be the one being diagnosed in case the Connector has multiple connections established for different nodes (which is not yet a supported feature, but we want to keep this possibility open for the future). */ data class DiagnoseNodeV1Request( - - @get:Size(min=0,max=1024) +@get:Size(min=0,max=1024) @field:JsonProperty("nodeIds") val nodeIds: kotlin.collections.List? = null ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DiagnoseNodeV1Response.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DiagnoseNodeV1Response.kt index dd68d19c6b..d0d0949df9 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DiagnoseNodeV1Response.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/DiagnoseNodeV1Response.kt @@ -10,7 +10,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -18,8 +17,7 @@ import javax.validation.Valid */ data class DiagnoseNodeV1Response( - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("nodeDiagnosticInfo") val nodeDiagnosticInfo: NodeDiagnosticInfo ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/FlowInvocationType.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/FlowInvocationType.kt index 1af20b28e1..02c41a06c5 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/FlowInvocationType.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/FlowInvocationType.kt @@ -9,7 +9,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * Determines which flow starting method will be used on the back-end when invoking the flow. Based on the value here the plugin back-end might invoke the rpc.startFlowDynamic() method or the rpc.startTrackedFlowDynamic() method. Streamed responses are aggregated and returned in a single response to HTTP callers who are not equipped to handle streams like WebSocket/gRPC/etc. do. diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/InvokeContractV1Request.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/InvokeContractV1Request.kt index 30e3d0a468..3f56ed9ecb 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/InvokeContractV1Request.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/InvokeContractV1Request.kt @@ -11,7 +11,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -22,19 +21,15 @@ import javax.validation.Valid */ data class InvokeContractV1Request( - @get:NotNull - @get:Size(min=1,max=1024) + @get:NotNull @get:Size(min=1,max=1024) @field:JsonProperty("flowFullClassName") val flowFullClassName: kotlin.String, - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("flowInvocationType") val flowInvocationType: FlowInvocationType, - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("params") val params: kotlin.collections.List, - - @get:DecimalMin("0") +@get:DecimalMin("0") @field:JsonProperty("timeoutMs") val timeoutMs: java.math.BigDecimal? = null ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/InvokeContractV1Response.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/InvokeContractV1Response.kt index 5f624fb517..1dcd77d50f 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/InvokeContractV1Response.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/InvokeContractV1Response.kt @@ -9,7 +9,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -19,14 +18,12 @@ import javax.validation.Valid */ data class InvokeContractV1Response( - @get:NotNull - @get:Size(min=1,max=1024) + @get:NotNull @get:Size(min=1,max=1024) @field:JsonProperty("id") val id: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("progress") val progress: kotlin.collections.List, - @field:Valid @field:JsonProperty("returnValue") val returnValue: kotlin.Any? = null ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JarFile.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JarFile.kt index b244081b96..38381b8af7 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JarFile.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JarFile.kt @@ -9,7 +9,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -19,17 +18,15 @@ import javax.validation.Valid */ data class JarFile( - @get:NotNull - @get:Size(min=1,max=255) + @get:NotNull @get:Size(min=1,max=255) @field:JsonProperty("filename") val filename: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("hasDbMigrations") val hasDbMigrations: kotlin.Boolean, - @get:NotNull - @get:Size(min=1,max=1073741824) + @get:NotNull @get:Size(min=1,max=1073741824) @field:JsonProperty("contentBase64") val contentBase64: kotlin.String -) : kotlin.collections.HashMap(){ +) : kotlin.collections.HashMap{ } diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JvmObject.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JvmObject.kt index 4778539a3b..3a12ed2e57 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JvmObject.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JvmObject.kt @@ -11,7 +11,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * Can represent JVM primitive and reference types as well. The jvmTypeKind field indicates which one is being stored. If the jvmTypeKind field is set to REFERENCE then the jvmCtorArgs array is expected to be filled, otherwise (e.g. PRIMITIVE jvmTypeKind) it is expected that the primitiveValue property is filled with a primitive data type supported by the JSON standard such as strings, booleans, numbers, etc. @@ -22,19 +21,14 @@ import javax.validation.Valid */ data class JvmObject( - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("jvmTypeKind") val jvmTypeKind: JvmTypeKind, - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("jvmType") val jvmType: JvmType, - @field:Valid @field:JsonProperty("primitiveValue") val primitiveValue: kotlin.Any? = null, - - @field:Valid - @get:Size(min=0,max=1024) +@get:Size(min=0,max=1024) @field:JsonProperty("jvmCtorArgs") val jvmCtorArgs: kotlin.collections.List? = null ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JvmType.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JvmType.kt index 82e6366eaf..3d3a242cd3 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JvmType.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JvmType.kt @@ -10,7 +10,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * Represents a reference to a JVM type (such as a Java class) @@ -20,14 +19,11 @@ import javax.validation.Valid */ data class JvmType( - @get:NotNull - @get:Size(min=1,max=65535) + @get:NotNull @get:Size(min=1,max=65535) @field:JsonProperty("fqClassName") val fqClassName: kotlin.String, - - @get:Size(min=1,max=65535) +@get:Size(min=1,max=65535) @field:JsonProperty("constructorName") val constructorName: kotlin.String? = null, - @field:Valid @field:JsonProperty("invocationTarget") val invocationTarget: JvmObject? = null ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JvmTypeKind.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JvmTypeKind.kt index 11e550519d..19a8d93473 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JvmTypeKind.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/JvmTypeKind.kt @@ -9,7 +9,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/ListFlowsV1Request.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/ListFlowsV1Request.kt index 9ed5bf3fbf..70542e6919 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/ListFlowsV1Request.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/ListFlowsV1Request.kt @@ -9,7 +9,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/ListFlowsV1Response.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/ListFlowsV1Response.kt index e3c595edc7..a062b8e563 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/ListFlowsV1Response.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/ListFlowsV1Response.kt @@ -9,7 +9,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -17,7 +16,7 @@ import javax.validation.Valid */ data class ListFlowsV1Response( - @get:NotNull + @get:NotNull @field:JsonProperty("flowNames") val flowNames: kotlin.collections.List ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/NetworkHostAndPort.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/NetworkHostAndPort.kt index 85b6011307..a4c1a9b809 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/NetworkHostAndPort.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/NetworkHostAndPort.kt @@ -9,7 +9,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -18,10 +17,10 @@ import javax.validation.Valid */ data class NetworkHostAndPort( - @get:NotNull + @get:NotNull @field:JsonProperty("host") val host: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("port") val port: java.math.BigDecimal ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/NodeDiagnosticInfo.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/NodeDiagnosticInfo.kt index 3cba4fe536..36de211f5b 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/NodeDiagnosticInfo.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/NodeDiagnosticInfo.kt @@ -10,7 +10,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * A NodeDiagnosticInfo holds information about the current node version. @@ -22,21 +21,19 @@ import javax.validation.Valid */ data class NodeDiagnosticInfo( - @get:NotNull - @field:Valid - @get:Size(min=0,max=4096) + @get:NotNull @get:Size(min=0,max=4096) @field:JsonProperty("cordapps") val cordapps: kotlin.collections.List, - @get:NotNull + @get:NotNull @field:JsonProperty("platformVersion") val platformVersion: kotlin.Int, - @get:NotNull + @get:NotNull @field:JsonProperty("revision") val revision: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("vendor") val vendor: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("version") val version: kotlin.String ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/NodeInfo.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/NodeInfo.kt index 633f47dec6..fca318a6b9 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/NodeInfo.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/NodeInfo.kt @@ -11,7 +11,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -23,22 +22,19 @@ import javax.validation.Valid */ data class NodeInfo( - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("addresses") val addresses: kotlin.collections.List, - @get:NotNull + @get:NotNull @field:JsonProperty("platformVersion") val platformVersion: kotlin.Int, - @get:NotNull + @get:NotNull @field:JsonProperty("serial") val serial: java.math.BigDecimal, - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("legalIdentities") val legalIdentities: kotlin.collections.List, - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("legalIdentitiesAndCerts") val legalIdentitiesAndCerts: kotlin.collections.List ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/Party.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/Party.kt index 5273749b32..92b8801c54 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/Party.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/Party.kt @@ -11,7 +11,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -20,12 +19,10 @@ import javax.validation.Valid */ data class Party( - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("name") val name: CordaX500Name, - @get:NotNull - @field:Valid + @get:NotNull @field:JsonProperty("owningKey") val owningKey: PublicKey ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/PublicKey.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/PublicKey.kt index 310a8e39cc..52d0d39e8e 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/PublicKey.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/PublicKey.kt @@ -9,7 +9,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * An instance of a java.security.PublicKey (which is an interface) implementation such as org.hyperledger.cactus.plugin.ledger.connector.corda.server.impl.PublicKeyImpl @@ -19,13 +18,13 @@ import javax.validation.Valid */ data class PublicKey( - @get:NotNull + @get:NotNull @field:JsonProperty("algorithm") val algorithm: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("format") val format: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("encoded") val encoded: kotlin.String ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/SHA256.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/SHA256.kt index f187c5ee67..98b117bd96 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/SHA256.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/SHA256.kt @@ -9,7 +9,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * SHA-256 is part of the SHA-2 hash function family. Generated hash is fixed size, 256-bits (32-bytes). @@ -19,13 +18,13 @@ import javax.validation.Valid */ data class SHA256( - @get:NotNull + @get:NotNull @field:JsonProperty("bytes") val bytes: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("offset") val offset: kotlin.Int, - @get:NotNull + @get:NotNull @field:JsonProperty("size") val size: kotlin.Int ) { diff --git a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/X500Principal.kt b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/X500Principal.kt index d5d0f39531..8ab37a741e 100644 --- a/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/X500Principal.kt +++ b/packages/cactus-plugin-ledger-connector-corda/src/main-server/kotlin/gen/kotlin-spring/src/main/kotlin/org/hyperledger/cactus/plugin/ledger/connector/corda/server/model/X500Principal.kt @@ -9,7 +9,6 @@ import javax.validation.constraints.Min import javax.validation.constraints.NotNull import javax.validation.constraints.Pattern import javax.validation.constraints.Size -import javax.validation.Valid /** * @@ -18,10 +17,10 @@ import javax.validation.Valid */ data class X500Principal( - @get:NotNull + @get:NotNull @field:JsonProperty("name") val name: kotlin.String, - @get:NotNull + @get:NotNull @field:JsonProperty("encoded") val encoded: kotlin.String ) {