env
- protoc-gen-openapi: v0.6.8
- protoc flags:
--openapi_opt naming=proto,enum_type=string
proto file
enum Trinary {
NULL = 0;
TRUE = 1;
FALSE = 2;
}
message Condition {
Trinary attached = 1;
}
expected output
Condition:
type: object
properties:
attached:
enum:
- 'NULL'
- 'TRUE'
- 'FALSE'
type: string
format: enum
actual output
Condition:
type: object
properties:
attached:
enum:
- NULL
- TRUE
- FALSE
type: string
format: enum
I know it's better not to use reserved words, so this is just for usage feedback.
env
--openapi_opt naming=proto,enum_type=stringproto file
expected output
actual output
I know it's better not to use reserved words, so this is just for usage feedback.