We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
@JsonDiscriminator
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
kxs-ts-gen should detect @JsonDiscriminator, and use the @SerialName as a hardcoded value
@SerialName
@Serializable @JsonDiscriminator("type") sealed class SomeClass { val id: String } @SerialName("named") @Serializable data class NamedSomeClass( override val id: String, val name: String, ) : SomeClass()
Should convert to something like...
interface SomeClass<T extends "named"> { id: string; type: T } interface NamedSomeClass extends SomeClass { id: string; type: "named" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
kxs-ts-gen should detect
@JsonDiscriminator
, and use the@SerialName
as a hardcoded valueShould convert to something like...
The text was updated successfully, but these errors were encountered: