Do you know the best way to generate your classes from swagger?
  v8.0 Posted at 23/10/2020 1:38 PM by Matt Goldman

​You can save time and reduce human error by automatically generating clients for your APIs.​

The best tool for this is NSwag.

This is Microsoft's recommended approach, and you can read more about how to set this up in your ASP.Net Core project at the official documentation.​

If you use the Clean Architecture template developed by SSW's @JasonTaylorDev, this is built in out of the box. See our rule on getting started with clean architecture.

​​​Figure: Good Example - NSwag Studio lets you customise your nswag config
Fig​​ure: Good Example - @JasonTaylorDev's Clean Architecture templace comes with this built in

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address: