Skip to content

Definition Builder fails with [][]byte #77

Description

@slow-zhang

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions