Releases: swagger-api/swagger-codegen
Swagger Codegen 3.0.10 has been released!
3.0.10 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:
-
replaced spaces with underscore in operationIds in order to solve issue. (swagger-codegen-generators PR 419)
-
shown example for properties in html2 output (swagger-codegen-generators PR 418)
-
refs #9548 - fix NPE for composed models (swagger-codegen-generators PR 415)
-
resolved ref in json schema view code to fix issue (swagger-codegen-generators PR 414)
Swagger Codegen 2.4.7 has been released!
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
}
}
}
other ASP.NET issues affected by this release
Swagger Codegen 2.4.6 has been released!
- updated ASP.NET Core generator (#9529)
- bump parser to 1.0.45 (#9530)
- Readme Update - Security Section Added (#9477)
- fix generate options (#9452)
Notes about aspnetcore
generator updates:
supported environments
ASP.NET Core 2.0
, 2.1
, 2.2
(default)
significant options
--additional-properties interface-only=true
: only generate interfaces for controllers
--additional-properties interface-controller=true
: generate interfaces for controllers, implemented by a default controller implementation
when neither interface-only
nor interface-controller
are set, no interfaces are generated.
--additional-properties aspnetCoreVersion
(e.g. aspnetCoreVersion 2.0
)
Swagger Codegen 3.0.8 has been released!
3.0.8 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 (experimental)
- csharp (experimental)
- csharp-dotnet2 (experimental)
- python (experimental)
Notable changes:
-
fix handling of boolean additionalProperties (#9402, swagger-codegen-generators PR 368)
-
Add hasModel property to support file bundle (#9345)
-
use openjdk docker base image for CLI V3 (#9342)
-
fixes imports when spec contains no schema (#9337, swagger-codegen-generators PR 352)
-
fixed restful methods names in order to fix missing parameters issue. (#9327)
-
add versioning section to readme v3 (#9323)
-
bump inflector version (#9312)
-
ref /issues/9210 - update http urls to https (swagger-codegen-generators PR 365)
-
resolves request body example and adds to htmlDocs template (swagger-codegen-generators PR 357)
-
Fix generated python api imports to include packageName. (swagger-codegen-generators PR 355)
-
fixed cast exception in templates. (swagger-codegen-generators PR 343)
Swagger Codegen 2.4.5 has been released!
- ref #9210 - update http urls to https (#9389)
- skip branch appveyor build for branches with PR (#9388)
- [BUG] [CRITICAL] [PHP] Symfony server incorrect api input validation: min contstraint in max condition (#9383)
- use openjdk docker base image for CLI (#9341)
- ref #9132 - Handle UntypedProperty (#9336)
- fixed out of bound exception for pattern string. (#9332)
- add versioning section to readme (#9319)
Swagger Codegen 3.0.7 has been released! replaces and fixes 3.0.6
3.0.7 release of swagger-codegen with OpenAPI 3 support.
Replaces and fixes 3.0.6, fixing swagger-api/swagger-parser/issues/1053
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 (experimental)
- csharp (experimental)
- csharp-dotnet2 (experimental)
- python (experimental)
Notable changes:
-
fixed NPE on getRequired boolean value (swagger-codegen-generators PR 333)
-
Mark form parameters as required when body is required (swagger-codegen-generators PR 331)
-
fixed NPE on adding content type extension (swagger-codegen-generators PR 330)
-
allow request body with non schema (swagger-codegen-generators PR 328)
-
[JAVA] inherited objects are not used as parameters in operations - Issue #321 (swagger-codegen-generators PR 324)
-
uncomment codegen content extension call statement (swagger-codegen-generators PR 323)
-
[Htmldocs] add request body description and examples for models' property (swagger-codegen-generators PR 320)
-
Fixed issue with retrofit2 generator fail (swagger-codegen-generators PR 318)
-
[html2] fixed body parameter description and response schema missing. (swagger-codegen-generators PR 316)
-
codegen response object update (#9204)
-
fix generator types endpoint (#9199)
Swagger Codegen 2.4.4 has been released! replaces and fixes 2.4.3
replaces and fixes 2.4.3, fixing swagger-api/swagger-parser/issues/1053
- [python-flask] convert pattern to perl convention instead throwing an error. (#9251)
- fix python line length E501 (#9244)
- update snakeyaml version (#9243)
- [go] suffix enum name with classname to avoid conflict (#9234)
- [Python] Update Minimum Required Versions in setup.mustache (#9211)
- [haskell-http-client] Bump to lts 13.8 (#9209)
- [JAVA] Generate and use variable name for setting discriminator and fix #9205 (#9207)
- fix config CodegenType (#9198)
Please use 3.0.7 release!
Please use 3.0.7 release as it fixes swagger-api/swagger-parser/issues/1053
Please use 2.4.4 release
Please use 2.4.4 release as it fixes #1053