Webapi-Swagger : Store and pass imports in an extensible manner #16
Labels
enhancement
Webapi-Swagger
All issues related to Webapi-swagger (generation of Webapi contracts from Swagger Docs)
Currently the module names have been hard-coded in the source and this is quite ugly and is not very extensible, especially if we want to switch to getting them in from a config file later.
A temporary approach/fix which could be extended later (probably via a config file) would be to keep the necessary imports in a top level function that provides the imports along with certain information (like whether it needs to be imported as qualified and the qualified name or whether we want to import using
as
, likeimport module XYZ as X
).The text was updated successfully, but these errors were encountered: