2

How do you use liquid templates with NSwagStudio to change how files are generated?

  • I asked a related question re: gaining access to Swagger/OAS 3.0 json from Templates at [Extension point or access to OpenApiDocument from Liquid Template](https://stackoverflow.com/questions/60304352/extension-point-or-access-to-openapidocument-from-liquid-template). If you have information it would be appreciated :) – ttugates Feb 19 '20 at 16:02

1 Answers1

3

OK, it seems there are some samples of liquid templates there: https://github.com/RSuter/NSwag/tree/master/src/NSwag.CodeGeneration.CSharp/Templates

You can copy them and start editing them.

Then, you just need to point to your folder to use them to generate custom code.

There is a wiki: https://github.com/RSuter/NSwag/wiki/Templates