strongloop/loopback-explorer — pull request #27 by ritch (2014-07-31 23:37:25+00:00)
Title: Add required swagger 1.2 items property for property type array

/to @raymondfeng

This patch ensures the `items` object is always available. The UI is breaking on the full-stack-example because this isn't always assigned.

On a side note, I don't think we are handling all of the supported LDL formats for type definition. This code really needs some refactoring. We should move LDL normalization into loopback or its own module. This way all code that interacts with LDL doesn't have to support all the weird forms of type definition:

- `Constructor`
- `[Constructor]`
- `"type"`
- `{ type: Constructor}`
- `[]`