Skip to content

How to generate a completable enum field description from .proto file? #463

@terloo

Description

@terloo

I attempt to generate a openapi.yaml like this,(just an example)

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

parameters:
  - name: weather
    schema:
      type: integer
      format: enum

or

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions