Hey all, my current use case requires me to define a wit enum with a value of sha-256
. Seems an enum val can't be comprised of numeric chars. Is there an idiomatic way to handle this, and if not is there openness to a PR? I bet y'all have a good reason for not supporting it at the moment.
I believe it is an intentional constraint. See: https://github.com/WebAssembly/component-model/issues/134
For this particular case, can you name it sha256
?
Yeah that can probably meet my needs in this case. Re: that issue, I understand it to propose an additional separator in case you need numeric chars and a separator in your name, but I don't think I glean the benefit of disallowing numeric chars with the -
to begin with.
Appreciate the info you shared!
Last updated: Nov 22 2024 at 16:03 UTC