Skip to content
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

Field ordering #41

Open
kennycason opened this issue Mar 24, 2022 · 0 comments
Open

Field ordering #41

kennycason opened this issue Mar 24, 2022 · 0 comments

Comments

@kennycason
Copy link

I noticed #13 was closed, but I'm also interested in being able to preserve sort order. I've integrated the library and have really enjoyed it, but being able to preserve field order is important enough that I fear it will ultimately result in us not being able to use the library without this feature as we are currently still manually sorting fields by hand post generation.

I see that the field ordering is based on Kotlin's reflection library, but am curious if you have any ideas on how to implement this feature?

I also noticed the ClassTransfomer.transformPropertyList(properties: List<KProperty<*>>, klass: KClass<*>): List<KProperty<*>> which looked promising but I haven't dug in very deeply.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant