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