Closed Sajjon closed 10 months ago
Thanks @Sajjon, unfortunately generating Codable
implementation for enums is not supported yet.
I would definitely consider adding support for enum. The major challenge is finding a generalized way of implementation that will work for all the users (which I am still figuring out). Let me know if you have anything in mind.
@Sajjon I have created #31 for discussing enum support, feel free to go through it and suggest any changes you would like with Enum types support
@Sajjon enum support has been released.
Hey! Great lib! Does it already support this use case?
when I JSON encode
StateHolder(state: .on(.init(onOnlyProperty: "On!")))
Swift produces:Or using
.off
respectively:Which is... well I think that was strange design decision by SE-0295.
I always manually change this to:
Is this support by the lib? Or something you would consider adding?