I suggest you ...

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
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    George Hemmings shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    declined  ·  AdminDemis J Bellot (Developer, ServiceStack) responded  · 

    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.

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • George Hemmings commented  ·   ·  Flag as inappropriate

        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.

      Feedback and Knowledge Base