My struct looks like this:
type email struct {
ID string `json:"id"`
Attachments [][]byte `json:"attachments,omitempty" optional:"true"`
}
My apidocs.json ends up looking something like this:
{
"swagger": "2.0",
...
"definitions": {
"email": {
"properties": {
"id": {
"type": "string"
},
"attachments": {
"type": "array",
"items": {
"$ref": "#/definitions/email.attachments"
}
}
}
}
My [][]byte becomes a reference to a new definition, but that definition is never created.
My struct looks like this:
My apidocs.json ends up looking something like this:
{ "swagger": "2.0", ... "definitions": { "email": { "properties": { "id": { "type": "string" }, "attachments": { "type": "array", "items": { "$ref": "#/definitions/email.attachments" } } } }My [][]byte becomes a reference to a new definition, but that definition is never created.