Using the dataTypes of Swagger to build Api annotations