github RicoSuter/NSwag NSwag-Build-763
NSwag v8.0 (Build 763)

latest releases: v14.2.0, v14.1.0, v14.0.8...
7 years ago

General:

  • Changed license to MIT
  • Varios bug fixes (route handling, route path parameter handling, etc.)
  • Code level refactorings (mainly in NJsonSchema)
  • Extended DocumentProcessorContext to support more scenarios

TypeScript generator:

  • Improved client typings to allow strict null checks (TS 2.0)
  • Added ClientBaseClass setting: Adds a class to all generated client classes (must be defined or imported in the extension code)
  • Added settings UseTransformOptionsMethod and UseTransformResultMethod
    • Breaking change: If you currently use 'transformOptions' or 'transformResult' via extension class, you need to enable the settings so that the methods are called (before they were called automatically)
  • Improved TypeScript exception handling (now throwing a SwaggerException with the status code and more context info)
    • Added option to always wrap DTO exeptions in a SwaggerException instance (WrapDtoExceptions setting)
    • Breaking change: DTOs are still thrown directly, but now a SwaggerException instance is thrown instead of an Error
  • Improved HTTP status code handling (generated code now works for more scenarios)
  • Fixed bug in FormData handling

CSharp generator:

  • Improved HTTP status code handling (generated code now works for more scenarios)

Don't miss a new NSwag release

NewReleases is sending notifications on new releases.