You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We plan to use k8s declarative validation framework for validating requests in the Substrate API. The DV framework doesn't play well with proto oneofs so we need to avoid them for discriminated unions.
Oneof can be just replaced with two message-type fields (for each option) plus an optional string discriminator field.
Today we use oneof in a couple of places:
EnvVar source (only one value: string).
Volume source (durable dir or external volume template).
Activity
Update ActorTemplate substrate resource definition per latest discuss…
Mirror systemInfo volumes into the ActorTemplate substrate resource
Mirror systemInfo volumes into the ActorTemplate substrate resource
Mirror systemInfo volumes into the ActorTemplate substrate resource (#…
juli4n commentedon Aug 27, 2026
There are no oneofs in the API service messages now. Additionally, after #1274 presubmit checks will fail if an oneof field added.