esensar / kotlinx-serialization-msgpack

MsgPack support for kotlinx.serialization -- msgpack.org[kotlinx.serialization]
https://www.ensarsarajcic.com/kotlinx-serialization-msgpack/
MIT License
44 stars 9 forks source link

Configuration option to encode enums as ordinal values #98

Closed krisbitney closed 1 year ago

krisbitney commented 1 year ago

This PR introduces a configuration option ordinalEnums that, when enabled, causes enums to be encoded as Ints representing their ordinal value.

Closes https://github.com/esensar/kotlinx-serialization-msgpack/issues/97

It would be fantastic to get this merged and get a new release with this and support for the macosArm64 target

esensar commented 1 year ago

Some of the commits from this PR have already been merged to main previously. Could you clean up the PR please, so I can merge it?

krisbitney commented 1 year ago

Some of the commits from this PR have already been merged to main previously. Could you clean up the PR please, so I can merge it?

Yes, of course. Which branch should I set as the base?

esensar commented 1 year ago

main

krisbitney commented 1 year ago

Replaced by https://github.com/esensar/kotlinx-serialization-msgpack/pull/99