Skip to content
Rico Suter edited this page Apr 9, 2018 · 138 revisions

Roadmap | SDK Development | Contribute

Ways to use the toolchain

Tutorials

Specification

Swagger Generation

Available Swagger generators:

Customizations and extension points:

You can customize the Swagger generator with the following extension points of NSwag:

The Swagger generators use the JSON Schema generator from the NJsonSchema project:

  • JsonSchemaGenerator (NJsonSchema): Generates schemas from .NET classes
  • XML Documentation (NJsonSchema)
    • The NSwag.AspNetCore NuGet package automatically installs the required NuGet packages for reading XML Documentation.
  • Enums (NJsonSchema)
  • Inheritance (NJsonSchema): How to describe and generate inheritance of DTO classes.
  • Type Mappers (NJsonSchema): Type mappers allow you to generate a custom JSON Schema for a given .NET type.
  • Schema Processors (NJsonSchema): Post process the generation of the schema or child schemas
  • Schema Name Generators (NJsonSchema): Customize the names of schema 'definitions' keys.

Code Generation

Available code generators:

Extension points: