RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.72k stars 1.29k forks source link

Docker Compatiblity #4420

Open ghost opened 1 year ago

ghost commented 1 year ago

Goal: Add Docker compatibility to NSwag

Issue: .dockerignore has [Oo]bj/ entry which prevents files inside that directory from being copied over to the build image.

This makes sense because we only want source code in the build image.

Unfortunately NSwag defaults HTTP client generation to obj/swaggerClient.cs.

The ask:

  1. Is obj/swaggerClient.cs customizable to a folder outside obj/?
  2. I would propose to default obj/swaggerClient.cs to a better location i.e. gen/swaggerClient.cs.
ghost commented 1 year ago

Bump