yahehe / Nancy.Swagger

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

Handle nullable enum types #126

Closed bespokebob closed 7 years ago

bespokebob commented 7 years ago

Nullable primitive types were being mapped correctly, but other value types like Enums were not. Make nullable types map to their underlying type, and generate the schema for nullable Enums to be the same as the underlying Enum as well.

yahehe commented 7 years ago

Looks fine to me, @jnallard you touched this most recently

jnallard commented 7 years ago

Looks fine to me too! I'll merge it in