Skip to content

Extend google.protobuf.EnumOptions #2671

Closed
@garthk

Description

🚀 Feature

Extend google.protobuf.EnumOptions so we can set examples on enums.

enum State {
  option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_enum) = {
    example: "ACTIVE"
  };
  NONE = 0;
  ACTIVE = 1;
  INACTIVE = 2;
}

Workaround: set the example on every message using the enum.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions