grpc-gateway
grpc-gateway copied to clipboard
gRPC to JSON proxy generator following the gRPC HTTP spec
If using the http annotations it's rather complicated to get code to compile across languages. Many resort to copying the common annotations in the project in order for protoc to...
## 🐛 Bug Report The original discussion is in slack: https://gophers.slack.com/archives/CBATURP1D/p1651119673470069 ## To Reproduce Given a proto ``` enum AEnum { // a field comment AENUM_UNSPECIFIED = 0; } ```...
## 🚀 Feature When path parameters are all part of a message in the body protoc-gen-openapiv2 emits a body property that is an empty object. While technically the field `id`...
## 🐛 Bug Report Thanks for the great [help](https://github.com/grpc-ecosystem/grpc-gateway/issues/837#issuecomment-1080699455) and [guide](https://grpc-ecosystem.github.io/grpc-gateway/docs/mapping/customizing_openapi_output/#merging-output), I could merge swagger outputs of different services. By the way, the problem is that the merged output only...
Today request/response body is always encoded in JSON. Should accept application/x-www-form-urlencoded too. 1. Define a new field in the custom option to define a list of acceptable encoding of request...
I ran into an issue similar to [746,](https://github.com/grpc-ecosystem/grpc-gateway/issues/746). I have a setup with multiple micro services each defined in their own .proto file. Code generation works well until I tried...
I need to generate swagger json using proto annotations. generated schema should look like this ```json "schema": { "type": "object", "example": { "product_id": ["8900099100000113079", "8900099100000082373"] }, "properties": { "product_id": {...
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md
Is that possible using echo/gin/httprouter as request multiplexer instead of runtime.ServeMux?
Hi! You have just field `discriminator` in openapiv2.proto. But field not used for generating spec. It can be useful for show `oneof` message. discriminator example [here on petType](https://rebilly.github.io/ReDoc/#operation/addPet)