-
Notifications
You must be signed in to change notification settings - Fork 50
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
Support for YAML transformations like there is for JSON #29
Comments
Hey @Vampire, this functionality isn't built in to kaml. If you'd be interested in adding it with a PR, I'd be happy to talk about possible solutions. In the meantime, you can do something similar by implementing a custom serializer that casts the decoder to a |
I'm sorry, I'm right now too occupied with other contributions and actually I know the files I want to deserialize / serialize, so for now I just can live without the shape-based polymorphism. Maybe I find some time later or maybe you find time yourself in the meantime. :-) |
This issue has been automatically marked as stale because it has not had any activity in the last 60 days. It will automatically be closed if no further activity occurs in the next seven days to enable maintainers to focus on the most important issues. |
This issue has been automatically marked as stale because it has not had any activity in the last 60 days. It will automatically be closed if no further activity occurs in the next seven days to enable maintainers to focus on the most important issues. |
This issue has been automatically marked as stale because it has not had any activity in the last 60 days. It will automatically be closed if no further activity occurs in the next seven days to enable maintainers to focus on the most important issues. |
This issue has been automatically closed because it has not had any recent activity. |
This is not implemented, is it? Please reopen. |
Are you still considering to contribute @Vampire? |
@sschuberth I don't right now have the capacity to work on this, so if you want to do it, be my guest, would be highly appreciated. :-) |
I also have time restrictions, unfortunately. But I anyway wonder why KxS core has implemented |
Can we maybe just make the whole |
I've just read https://github.com/Kotlin/kotlinx.serialization/blob/v0.20.0/docs/json_transformations.md and really like that.
But I need that for YAML.
If you want to deserialize a GitHub action definition file, you have for example exactly the use-case of polymorphism by shape.
Would be really cool if kaml would also have such functionality built-in.
(Don't wonder that I'm reading the 0.20.0 docs, I'm using this in a Gradle build and therefore I cannot use 1.4.0 yet)
The text was updated successfully, but these errors were encountered: