Skip to content

TypesToOpenApiCommand

Rico Suter edited this page Jun 10, 2019 · 1 revision

Package: NSwag.Commands

The following command generates a OpenAPI specification for the given types and no operations. The intention is to generate DTO classes for other programming platforms from via a OpenAPI specification.

nswag types2openapi /assembly:MyTypes.dll /output:swagger.json

The external assembly is loaded in a seperate AppDomain so that there are no type collisions and the assembly can be correctly unloaded. TypesToSwaggerCommand