Support EnumAsInt attribute in ServiceStack.Text JSON serializer
EnumAsInt was added as an alternative to Flags in OrmLite. This would be nice to have in Text too.
1
vote

It’s a feature that it lets you control OrmLite independently of the serializers, otherwise it’s just a duplicate/redundant version of [Flags] which you should use instead if you want it on both.
-
George Hemmings commented
I'm calling an external service. [Flags] works fine, but adds incorrect semantics (combined values are not valid). Compile time checking of enums is so limited that it's not a big deal I guess. The service I'm calling annoyingly mixes int and string style enums in the same request.