yahehe / Nancy.Swagger

Nancy plugin for generated API documentation in Swagger format.
MIT License
133 stars 60 forks source link

fix format specification #163

Closed gabbacode closed 5 years ago

gabbacode commented 5 years ago

Hi, i've fixed some issues with type fromat specification in query parameters and models. So with this fixes types like int64 and decimal correctly passes to swagger schema.

gabbacode commented 5 years ago

Also SwaggerTypeMappingTests shuld be fixed because mutual influence. Should type mapping be static?

yahehe commented 5 years ago

Looks good to me! No it probably shouldn't be static, I agree that the tests aren't in great shape. I'm still trying to find some time to go all out and re-write this to support OpenAPI 3, at which point all the static tests can go away...