How to generate a completable enum field description from .proto file?
Open
- Dominant language
- Go
- Stars
- 2.3k
- Forks
- 279
- PR merge metrics
- No merged PRs in 30d
Description
I attempt to generate a openapi.yaml like this,(just an example)
```yaml
parameters:
- name: weather
schema:
type: integer
format: int32
enum:
- 1
- 2
- 3
x-enum-descriptions:
- 'Blue sky'
- 'Slightly overcast'
- 'Take an umbrella with you'
```
But I only got
```yaml
parameters:
- name: weather
schema:
type: integer
format: enum
```
or
```yaml
parameters:
- name: weather
schema:
type: string
format: enum
enum:
- BLUE_SKY
- XXXXX
- YYYY
```
I can't found any openapi annotation for enum type, How can I do it ?
Contributor guide
Assessment
This issue has not been assessed yet.