khellang/Nancy.Swagger — pull request #28 by TimSchlechter (2014-08-06 06:46:53+00:00)
Title: Parameter type fixes

Based on #27 so should be rebased before merging

Tries to fix the errors described in #26.

[Swagger spec](https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#524-parameter-object): "5.2.4 Parameter Object
The Parameter Object describes a single parameter to be sent in an operation and maps to the parameters field in the Operation Object.

This object includes the Data Type Fields in order to describe the type of this parameter. The type field MUST be used to link to other models."

This PR changes a couple of things:
- allowMultiple should not be explicitly set, it can be determined from the ParameterModel. true when it's a container type
- When ParamaterModel is a container type, Type and Format are taken from DataType's Items.Type and Items.Format
- When ParamaterModel is non-primitive, take the Type from Ref and clear Ref