khellang/Nancy.Swagger — pull request #17 by TimSchlechter (2014-08-01 22:30:54+00:00)
Title: Implemented attributes for describing models

Note: this PR is based on #16

I implemented the attributes which can be used to describe models. An example:
```csharp
[Model("A person")]
public class TestPerson
{
[Minimum(0)]
[Maximum(150)]
public int Age { get; set; }

[UniqueItems]
public IList EmailAddresses { get; set; }

[Name("firstname")]
[Description("Person's first name")]
[Required]
public string FirstName { get; set; }

[Enum("male", "female")]
public string Gender { get; set; }
}
```

@liddellj, @khellang: I chose not implementing an ISwaggerModelDataProvider, but let the SwaggerAnnotationsConverter handle the model providing. When it is needed, the code can easily be moved to a provider class, but at this point doing it felt a bit like overdesigning.