Skip to content

Swagger Gen: underscores -> lowerCamelCase field names and refs #261

Closed
@msample

Description

Protobuf3 style guidelines suggest using underscores in Message field names in .proto files, and the JSON mappings will be translated to use lowerCamelCase field names (https://developers.google.com/protocol-buffers/docs/proto3).

For the same reasons (ie JSON encoding derived form the Swagger), shouldn't these field names be in lowerCamelCase format in the grpc-gateway-generated Swagger as well?

I am running into this issue using swagger-codegen on Swagger produced by grpc-gateway. The work around is to use the lowerCamelCase in original protobuf files - I am not sure if this introduces problems with other protoc codegen paths.

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