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
EnumType: flags.String("enum_type", "integer", `type for enum serialization. Use "string" for string-based serialization`),
I checked the source code and found that this feature is already supported, but I don't know how to pass this parameter to the protoc command to make it work, hope it helps. And I tested it in the buf plugin and it works, the result is as follows
direction:
description: actually it is lowercase string
enum:
- DIRECTION_UNSPECIFIED
- FORWARD
- BACKWARD
- LEFT
- RIGHT
format: enum
type: string
Thanks for this helpful tool.
I come across this issue when I'm using protoc-gen-openapi plugin to generate OpenAPI3 specification from protobuf definition.
I have a State type and fields of State type are marked with
enum
format.However, for
enum
in OpenAPI3 should beIs there any feature that we can configure to generate
enum
schema?The text was updated successfully, but these errors were encountered: