type

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 #

Copyright 2015-2024 the go-swagger maintainers. This documentation is under an Apache 2.0 license.

Site built with HUGO using hugo-book