Skip to content

protoc-gen-swagger: Support for repeated custom message in url params #1119

Closed
@glossd

Description

@glossd

I'm trying to use pagination with gRPC like this

rpc ListThing (ListThingRequest) returns (ListThingResponse) {
    option (google.api.http).get = "/v1/things"
}

message ListThingRequest {
    int32 page_number = 1;
    int32 page_size = 2;
    repeated OrderField sort = 3;
}
message OrderField {
    string field = 1;
    Order order = 2;
}

enum Order {
    ASC = 0;
    DESC = 1;
}

but the sort doesn't get generated. PR with support for map not merged yet...
What are the options?

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