-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[protoc-gen-openapi] Document Option Support Wonkeyness #332
Comments
That's a really good question! Out of the top of my head, I can't even start to guess... |
I'll try to take a look when I have time. Last week I was taking some "innovation" time so I had a bit more free time to do things. Now I'm back to having less time to look into things like this. |
The problem is here - the
When I add that manually, the scopes are exported correctly. Thanks for catching this :) |
Looks fixed by #333. Looking at the result, I'm wondering if YAML parsers are usually smart enough to handle ':' embedded in keys like you have here:
But fortunately gnostic (yaml.v3) reads it with no problems!
|
@jeffsawatzky please close if you find this is fixed now. |
Fixed! Thank you so much! |
With the new options that were added in #324 I have come across either some weird bug somewhere...or more likely a usage error on my part, but I can't figure out what exactly the usage error is.
For instance, if I have a proto file with the following content:
The resulting
openapi.yaml
file I get looks like:Which looks correct for the most part, except for the
scopes
way down in thecomponents.securitySchemes.OAuth2.flows.authorizationCode
which is missing the scopes, and I can't seem to figure out why.Looking at the OpenAPIv3.proto:
scopes
is aStrings
message typeStrings
has a repeatedNamedString
calledadditional_properties
NamedString
hasstring
name
andvalue
propertiesSo as far as I can tell I am constructing the options correctly following the protos.
@timburks / @morphar am I missing something? Why aren't the
scopes
getting output? Please point out my mistake.The text was updated successfully, but these errors were encountered: