Skip to content

Remove oneofs from ate-apiserver API #962

Description

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions