Results 5 comments of zaakn

After reading the source code, I found a way, but it's a bit ungraceful. idea: - `application/octet-stream` is the type that just used for binary streams - the incoming struct...

As a similar case: I imported `openapiv3/annotations.proto` which has a message named `Contact` (actually in `openapiv3/OpenAPIv3.proto`) to set `option (openapi.v3.document)`. And this `Contact` is not used in my own `foo.proto`....

You may read these guidance to know how to define http service (by proto option, etc.) for grpc service: https://google.aip.dev/127 https://github.com/googleapis/googleapis/blob/master/google/api/http.proto

1. Make a copy for `google/api` directory into your "include" path (e.g. `/usr/local/include/` on Linux) to ready for being imported. Copy from [google/api](https://github.com/googleapis/googleapis/tree/master/google/api) and keep `google` directory structure. See also...

Related code lines: https://github.com/google/gnostic/blob/ee84fd2a96205f519ad7b86d989673d2ada03a3b/cmd/protoc-gen-openapi/generator/wellknown/schemas.go#L53-L63 My simple solution is: ```go schema.Enum = append(schema.Enum, &v3.Any{ Yaml: strconv.Quote(string(field.Enum().Values().Get(i).Name())), }) ``` But is it correct to add Quote here? It has to be said...