-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update models in kotlin client generator #1373
Conversation
Signed-off-by: Allain Magyar <[email protected]>
Signed-off-by: Allain Magyar <[email protected]>
Signed-off-by: Allain Magyar <[email protected]>
301f60b
to
2ef9431
Compare
* Please note: | ||
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* Do not edit this file manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file really auto-generated? there Is some commented out code here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was auto generated but then I added to openapi-generator
to ignore it and added to git
@@ -15,3 +16,5 @@ src/main/kotlin/org/hyperledger/identus/client/models/CredentialSubject.kt | |||
src/main/kotlin/org/hyperledger/identus/client/models/DateTimeParameter.kt | |||
src/main/kotlin/org/hyperledger/identus/client/models/DidParameter.kt | |||
src/main/kotlin/org/hyperledger/identus/client/models/VcVerificationParameter.kt | |||
|
|||
src/main/kotlin/org/hyperledger/identus/client/models/Json.kt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm probably not understanding something, but I thought initially that you will override Service(id, type, serviceEndpoint)
type here, should not you also add it in this file as well?
If there's no `discriminator` you'll have to try to parse each type to retrieve the typed object. | ||
|
||
```kotlin | ||
class ServiceTypeAdapter : TypeAdapter<AnimalResponse>() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be class AnimalResponseAdapter
? 🤔
out.jsonValue(Gson().toJson(value.value)) | ||
} | ||
|
||
fun JsonTypeAdapter.oleole() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you've been using this while developing and forgot to remove
@amagyar-iohk Are we still going to merge this one? |
Description:
Adds solution when OAS model generation doesn't handle
oneOf
wellChecklist: