Hi, I have a gRPC implementation of REST services. It's divided across two proto files - one for the operations and one for the request and response messages.
One of them, a GET Service, accepts a single query parameter as input, which I want to annotate as "required" so that I can use the openApiv3 converter and get that information into the OpenAPI yaml spec.
I tried to do it in the following two ways:
Adding it to the message, and not the operation, just like how we do with the JSON payload values.
Hi, I have a gRPC implementation of REST services. It's divided across two proto files - one for the operations and one for the request and response messages.
One of them, a GET Service, accepts a single query parameter as input, which I want to annotate as "required" so that I can use the openApiv3 converter and get that information into the OpenAPI yaml spec.
I tried to do it in the following two ways:
Proto Annotation:
There's no mention of "required" in the yaml file output: OpenAPI YAML file:
Proto Annotation:
This seems to work, but brings a duplicate one from the request message. OpenAPI YAML: