icerockdev / moko-network

Network components with codegeneration of rest api for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev
Apache License 2.0
151 stars 29 forks source link

Add the value being deserialized to Safeable wrapper #203

Open dalewking opened 1 year ago

dalewking commented 1 year ago

When using the enum fall back and there is an expected value for the enum there are cases would it would be helpful to know the value that failed. For example if you needed to verify that two deserialized values were the same even if we don't have the enum mapping. In that case we could fall back to comparing the text value