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
We're using google's UUID package and generating docs from the struct. If we expect a single uuid, we can use // swagger:strfmt uuid to show a nice example, but in case of an array of uuid, the tool generates this:
It is defined like this:
type FilterBy struct {
// Example: General
Name *string `json:"name"`
VehicleTypes []uuid.UUID `json:"vehicleTypes"`
}
I tried to use swagger:strfmt and the Example as well without luck to show uuids, and not [0]. Do you have a solution for this?
Environment
swagger version: 0.29.0
go version: 1.17.2
OS: MacOS 21.1
The text was updated successfully, but these errors were encountered:
Problem statement
We're using google's UUID package and generating docs from the struct. If we expect a single uuid, we can use
// swagger:strfmt uuid
to show a nice example, but in case of an array of uuid, the tool generates this:It is defined like this:
I tried to use
swagger:strfmt
and theExample
as well without luck to show uuids, and not[0]
. Do you have a solution for this?Environment
swagger version: 0.29.0
go version: 1.17.2
OS: MacOS 21.1
The text was updated successfully, but these errors were encountered: