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
The tags on the goca.Identity.IPAddresses field for swag generated documentation cause the doc tests to fail. Swag doesn't know what to do with the []net.IP type when parsing the provided example.
As a temporary workaround, the tag can be replaced with swaggerignore:"true" to have swag skip it.
The swaggertype tag can be used to provide a type hint to swag, but since byte isn't a primitive type to swag, it fails on this too. (net.IP is a typedef of []byte).
According to the swag README section "Use swaggertype tag to supported custom type" we may be able to implement the encoding.JSON.Marshaler interface and use the swaggertype tag to get example parsing working.
The text was updated successfully, but these errors were encountered:
The tags on the
goca.Identity.IPAddresses
field for swag generated documentation cause the doc tests to fail. Swag doesn't know what to do with the[]net.IP
type when parsing the provided example.As a temporary workaround, the tag can be replaced with
swaggerignore:"true"
to have swag skip it.The
swaggertype
tag can be used to provide a type hint to swag, but sincebyte
isn't a primitive type to swag, it fails on this too. (net.IP is a typedef of []byte).According to the swag README section "Use swaggertype tag to supported custom type" we may be able to implement the
encoding.JSON.Marshaler
interface and use theswaggertype
tag to get example parsing working.The text was updated successfully, but these errors were encountered: