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
Using // swagger:strfmt on a []byte type (UUID) infers the type as an array of strings.
I have a local version of uuid.UUID which is [16]byte under the hood. Using // swagger:strfmt uuid4 gets the type close but it is reflecting a slice/array of strings instead of a string value.
I've tried setting // swagger:type string on both the type and the property but neither have had an effect.
import"github.com/google/uuid"// ID is a UUIDv4// swagger:strfmt uuid4// can not set swagger type here eithertypeID uuid.UUID//swagger:model basetypeBasestruct {
// ↓ has no effect// swagger:type stringIdentifierID`json:"_id" bson:"_id"`
}