Skip to content

NSwag Configuration Document

Rico Suter edited this page Nov 18, 2016 · 17 revisions

A .nswag configuration document describes one Swagger generator/reader (input), and multiple client code generators (outputs):

{
  "SwaggerGenerator": {
    "WebApiToSwagger": {
      ...
    }
  }, 
  "CodeGenerators": {
    "SwaggerToCSharpClient": {
      ...
    }
  }
}

The available settings of the input and outputs are the same as the CommandLine.