Open enums: add `fromStringOrUnknown` convenience method
Currently, we only have def fromString and a def $unknown. I think it'd be useful to have a total, Option-less function like def fromStringOrUnknown(s: String): TheEnum generated in all open enums' companion objects.
Agreed
I was thinking to make it something that these enums inherit from a supertype, but we currently don't have a trait OpenEnumeration or anything like that. Let's just generate this verbatim for the time being.
https://github.com/disneystreaming/smithy4s/blob/1f0d08e20d0f0d97ef4d1ff404f94bf0b8da1e65/modules/codegen/src/smithy4s/codegen/internals/Renderer.scala#L1313-L1317
Hey, I would like to work for its solution