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
After run "buf generate proto" command, I found the hostname field was marked as required, but the buckets field was not, do we have a document which describes how to config an array field as required?
The generated swagger file:
"parameters": [
{
"name": "hostname",
"description": "hostname is the name of which you want to acquire join token",
"in": "query",
"required": true,
"type": "string"
},
{
"name": "buckets",
"description": "bucket is the name for the cos-agent instance using this token sneds telemetry data to",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string",
"required": [
"buckets"
]
},
"collectionFormat": "multi"
}
]
The text was updated successfully, but these errors were encountered:
Hm, I don't think so. There might be a bug here, but I'd appreciate if you could dig around a bit to find out. Perhaps this could be a doc contribution or a bug fix, or both :).
📚 Documentation
I have a simple proto file:
And I want to add an extra openapi file to help to generate the swagger file:
After run "buf generate proto" command, I found the hostname field was marked as required, but the buckets field was not, do we have a document which describes how to config an array field as required?
The generated swagger file:
The text was updated successfully, but these errors were encountered: