-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ATL-7076: Fix OneOf OpenAPI Serialization Issue
Signed-off-by: Bassam Riman <[email protected]>
- Loading branch information
1 parent
cf156d9
commit 3e71e9d
Showing
7 changed files
with
175 additions
and
35 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
41 changes: 41 additions & 0 deletions
41
.../client/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/DateTimeParameter.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,41 @@ | ||
/** | ||
* | ||
* Please note: | ||
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* Do not edit this file manually. | ||
* | ||
*/ | ||
|
||
@file:Suppress( | ||
"ArrayInDataClass", | ||
"EnumEntryName", | ||
"RemoveRedundantQualifierName", | ||
"UnusedImport" | ||
) | ||
|
||
package org.hyperledger.identus.client.models | ||
|
||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
/** | ||
* | ||
* | ||
* @param dateTime | ||
* @param parameterType | ||
*/ | ||
|
||
|
||
data class DateTimeParameter ( | ||
|
||
@SerializedName("did") | ||
override val did: kotlin.String? = null, | ||
|
||
@SerializedName("parameterType") | ||
override val parameterType: kotlin.String = "DateTimeParameter", | ||
|
||
@SerializedName("dateTime") | ||
override val dateTime: java.time.OffsetDateTime, | ||
|
||
) : VcVerificationParameter | ||
|
40 changes: 40 additions & 0 deletions
40
...agent/client/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/DidParameter.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,40 @@ | ||
/** | ||
* | ||
* Please note: | ||
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* Do not edit this file manually. | ||
* | ||
*/ | ||
|
||
@file:Suppress( | ||
"ArrayInDataClass", | ||
"EnumEntryName", | ||
"RemoveRedundantQualifierName", | ||
"UnusedImport" | ||
) | ||
|
||
package org.hyperledger.identus.client.models | ||
|
||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
/** | ||
* | ||
* | ||
* @param did | ||
* @param parameterType | ||
*/ | ||
|
||
|
||
data class DidParameter ( | ||
|
||
@SerializedName("did") | ||
override val did: kotlin.String, | ||
|
||
@SerializedName("parameterType") | ||
override val parameterType: kotlin.String = "DidParameter", | ||
|
||
@get:SerializedName("dateTime") | ||
override val dateTime: java.time.OffsetDateTime? = null, | ||
) : VcVerificationParameter | ||
|
41 changes: 41 additions & 0 deletions
41
...t/kotlin/src/main/kotlin/org/hyperledger/identus/client/models/VcVerificationParameter.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,41 @@ | ||
/** | ||
* | ||
* Please note: | ||
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* Do not edit this file manually. | ||
* | ||
*/ | ||
|
||
@file:Suppress( | ||
"ArrayInDataClass", | ||
"EnumEntryName", | ||
"RemoveRedundantQualifierName", | ||
"UnusedImport" | ||
) | ||
|
||
package org.hyperledger.identus.client.models | ||
|
||
import org.hyperledger.identus.client.models.DateTimeParameter | ||
import org.hyperledger.identus.client.models.DidParameter | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
/** | ||
* | ||
* | ||
* @param dateTime | ||
* @param parameterType | ||
* @param did | ||
*/ | ||
|
||
|
||
interface VcVerificationParameter { | ||
|
||
@get:SerializedName("dateTime") | ||
val dateTime: java.time.OffsetDateTime? | ||
@get:SerializedName("parameterType") | ||
val parameterType: kotlin.String | ||
@get:SerializedName("did") | ||
val did: kotlin.String? | ||
} | ||
|
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