Open kiaser opened 2 years ago
Hello @kiaser, thanks for using EmbedIO!
While support for OpenAPI would be welcome, it shouldn't be an addition to EmbedIO itself IMHO. I see three possible implementations:
I don't see the first one happening any time soon, as Swagger Codegen generators must be written in Java. Furthermore, the swagger-codegen-generators
project already has 81 open PRs, so the chances of an EmbedIO generator making its way in appear meager.
The other two options both look promising. I'll leave this issue open in the hope someone chimes in and tries at least a preliminary analysis.
Hello @kiaser, thanks for using EmbedIO!
While support for OpenAPI would be welcome, it shouldn't be an addition to EmbedIO itself IMHO. I see three possible implementations:
- as an added code generator for Swagger Codegen;
- as a C# source generator, in its own NuGet package (saving bandwidth for those who don't need it);
- as an MSBuild task, also in its own NuGet package.
I don't see the first one happening any time soon, as Swagger Codegen generators must be written in Java. Furthermore, the
swagger-codegen-generators
project already has 81 open PRs, so the chances of an EmbedIO generator making its way in appear meager.The other two options both look promising. I'll leave this issue open in the hope someone chimes in and tries at least a preliminary analysis.
thanks for your advice ,I try to implement it
hi, I haven't found out embedio support for webapi swagger