Skip to content

Swagger Codegen Generators v1.0.9

Compare
Choose a tag to compare
@frantuma frantuma released this 28 Jun 13:34
· 1357 commits to master since this release
addfaba

1.0.9 release of swagger-codegen-generators with OpenAPI 3 support.

See also https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.9

Supported V3 generators

  • akka-scala (experimental)
  • dynamic-html
  • html
  • html2
  • java
  • jaxrs-cxf-client
  • jaxrs-cxf
  • inflector
  • jaxrs-cxf-cdi
  • jaxrs-spec
  • jaxrs-jersey
  • jaxrs-di
  • jaxrs-resteasy-eap
  • jaxrs-resteasy
  • spring
  • openapi
  • openapi-yaml
  • kotlin-client
  • kotlin-server
  • nodejs (experimental)
  • php
  • swift3
  • swift4
  • typescript-angular
  • scala
  • aspnetcore (UPDATED)
  • csharp (UPDATED)
  • csharp-dotnet2 (DEPRECATED)
  • python
  • python-flask (experimental)

Notable changes

Notes about aspnetcore generator updates:

supported environments

ASP.NET Core 2.0, 2.1, 2.2 (default)

significant options

--interface-only : only generate interfaces for controllers
--interface-controller : generate interfaces for controllers, implemented by a default controller implementation

when neither interface-only nor interface-controller are set, no interfaces are generated.

--aspnet-core-version (e.g. --aspnet-core-version 2.0)

Such options are usable:

  • via CLI, e.g. --aspnet-core-version 2.0 or --additionalProperties aspnet-core-version=2.0
  • via generator web service / programmatically as additionalProperties, e.g.:
{
  "lang": "aspnetcore",
  "specURL": "https://petstore3.swagger.io/api/v3/openapi.json",
  "type": "SERVER",
  "codegenVersion": "V3",
  "options": {
    "additionalProperties": {
      "aspnet-core-version": "2.0",
      "interface-only": true      
    }
  }
}   
  • via generator web service / programmatically as additionalProperties, e.g.:adding them to codegenArguments member of Options, e.g:
{
  "lang": "aspnetcore",
  "specURL": "https://petstore3.swagger.io/api/v3/openapi.json",
  "type": "SERVER",
  "codegenVersion": "V3",
  "options": {
    "codegenArguments": {
      "aspnet-core-version": "2.0",
      "interface-only": true      
    }
  }
}