Swagger Codegen 3.0.9 has been released!
3.0.9 release of swagger-codegen with OpenAPI 3 support.
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:
-
python-flask server generator (swagger-codegen-generators PR 387)
-
added python flask sample (#9456)
-
updated aspnetcore generator:
- aspnet core interfaces samples (#9528, #9510)
- fixes NPE in aspcore filter (swagger-codegen-generators PR 402)
- Asp interface controllers (swagger-codegen-generators PR 400)
- fix aspnetcore version in dockerfile (swagger-codegen-generators PR 398)
- Aspnet core 2 1 (swagger-codegen-generators PR 397)
-
Endrec 3.0.0 (#9485)
-
Readme Update 3.0.0 - Security Section Added (#9478)
-
add csharp client sample (#9446)
-
added bearer checks to be used in templates. (#9423)
-
bump parser v1 to 1.0.45 (#9526)
-
bump parser to 2.0.13 (#9525)
-
add xml deserializer to support xml content types request (swagger-codegen-generators PR 399)
-
Lion7 fix binary type alternative (swagger-codegen-generators PR 392)
-
Loicsiret patch 1 (swagger-codegen-generators PR 391)
-
Example generator (swagger-codegen-generators PR 390)
-
Replace dataType with baseType+containerType to fix compilation error in AkkaHttpServerCodegen (swagger-codegen-generators PR 386)
-
Add petstore.yaml and test its generation in AkkaHttpServerCodegenTest (swagger-codegen-generators PR 385)
-
fix csharp client (swagger-codegen-generators PR 383)
-
Remove duplicate "is" from Boolean getter (swagger-codegen-generators PR 381)
-
Fix CodegenModel.allVars to include vars of composed and parent models (swagger-codegen-generators PR 377)
-
fixed incorrect path for imports (swagger-codegen-generators PR 372)
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 ofOptions
, 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
}
}
}