title: Embedded object in loopback model schema for Swagger
body: <p>In the context of a remote method, I'm trying to define a model schema of a parameter passed in the body. This object looks like this:</p>
  
  <pre><code>{
      name: "Alex",
      credentials: {
          user: "alex",
          pass: "pass"
      }
  }
  </code></pre>
  
  <p>So, I have this code in my remote method definition:</p>
  
  <pre><code>  MyModel.remoteMethod("postSomething", {
      accepts: [
        {arg: 'person', type: {
            "name": "string",
            "credentials": {
              "type": "object",
              "properties": {
                "user": "string",
                "pass: "string"
              }
            }
          }, http: {source: 'body'}, required: true
        }
      ],
  .....
  </code></pre>
  
  <p>Unfortunatelly, the details of this embedded object (credentials) are not shown in the generated Swagger explorer. This is what I see:</p>
  
  <pre><code>{
      "user": "string",
      "credentials": {}
  }
  </code></pre>
  
  <p>I've tried many different ways but I could not show the properties of the credentials object.</p>
  
  <p>Any ideas?</p>