Enums do not seem to be handled correctly by Serialized
provider
#32
Labels
bug
Something isn't working
Serialized
provider
#32
I'm building an application (atop Rocket) with three access modes:
So we've (really @132ikl) built up a configuration structure that looks something like this:
So far so good. However, this appears to get... mangled when put into a figment. Here's how
serde_json
serializes the default value, for comparison:Here,
mode
's variant is indicated as you would expect for anenum
by default in Serde.However, if we put the same structure into a
Figment
withFigment::new().merge(Serialized.defaults(Config::default()))
, we don't seem to get the same tagging:This causes problems for a Rocket application:
The text was updated successfully, but these errors were encountered: