You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This actually looks a lot more difficult than I initially thought, because the security structure changed in openapi 3.
What grpc-gateway currently produces is for openapi version 2:
{"securityDefinitions": {"cookie_session": {"type": "apiKey","name": "session","in": "query"// I thought it would be as easy as to change this to "cookie"}}}
The enum In from https://github.com/grpc-ecosystem/grpc-gateway/blob/master/protoc-gen-swagger/options/openapiv2.proto#L283 does not allow for an IN_COOKIE option:
It looks like they added it in openAPI 3: OAI/OpenAPI-Specification#1200
from the docs
'REQUIRED. The location of the API key. Valid values are "query", "header" or "cookie"'
I'd really love this feature as my current work around is to load in the generated swagger.json and then modify it with javascript
The text was updated successfully, but these errors were encountered: