swagger:type #
swagger:type can be used to mark a struct with its type. This will override the type inferred by go-swagger.
These data types are supported by Swagger.
Syntax #
swagger:type [type]
Example #
// swagger:type string
type NullString struct {
sql.NullString
}
// swagger:model myString
type MyString struct {
NS NullString
}
Result #