Skip to content

protoc-gen-swagger: Implement Response Header(s) object, Implement Field Enum,Example&Format attributes #1729

Closed
@elijah-roberts

Description

@elijah-roberts

🚀 Feature

My team would like to auto-generate swagger/openapi docs from our proto files, however there are certain features that are missing that we would need in order to move away from manually managed openapi docs:

  • Headers/Header Object support - We currently return an header for all success, and failure responses and need to be able to define this via the grpc.gateway.protoc_gen_swagger.options.openapiv2_operation Responses Headers Object.
    image

  • grpc.gateway.protoc_gen_swagger.options.openapiv2_field example attribute support (cleaner than example_string)

  • grpc.gateway.protoc_gen_swagger.options.openapiv2_field format attribute support
    image

  • grpc.gateway.protoc_gen_swagger.options.openapiv2_field enum attribute support
    image

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