Added support for enums and nullable primitives.
Added the ability to provide a custom type mapping to the Swagger type mapping.