18059 Commits

Author SHA1 Message Date
Jesse Michael
5b4441892f Add Go Server featureCORS option (#4400)
Add a Go server configuration option of "featureCORS" that defaults to false. When set to true the Go server routers will be generated with Cross-Origin Resource Sharing middleware through gorrilla mux.

https://www.gorillatoolkit.org/pkg/handlers#CORS
2019-11-08 15:35:27 +08:00
Joel Beach
79d7e61b87 Fix treatment of nullable types in a few more places (#4315) 2019-11-08 08:06:11 +01:00
William Cheng
05e954c8aa
prefix local variable with localVar (#4402) 2019-11-08 15:04:33 +08:00
Bruno Coelho
7cf027fbf5 [kotlin][client] gson complete integration (#4332)
* [kotlin] update dependencies

* [kotlin][client] complete gson integration

* [kotlin][client] run petstores

* [kotlin][client] fix JsonMediaType and update petstores

* Add kotlin client gson to pom.xml

* Remove org.json dependency

* Try to fix kotlin-gson build

* Add kotlin client nonpublic to pom.xml

* Update samples

* try to fix build

* try to fix build

* try to fix build

* try to fix build

* [kotlin][client] restore libraries version

* [kotlin][client] update kotlin version

* [kotlin][client] update some libraries versions

* [kotlin][client] update some libraries versions

* [kotlin][client] add kotlin-gson and kotlin-nonpublic to CI test suit

* [kotlin][client] update some libraries versions

* try to fix build

* try to fix build
2019-11-08 15:02:48 +08:00
Jan
f9af3c2752 [kotlin] [bugfix] [maven-plugin]: prevent ClassCastException with boolean config options (#4361)
* fix: prevent classcast exception during execution of openapi-generator-maven-plugin.

* style: revert styling to openapi defaults

* test: unit test coverage for handling boolean config options

* fix: replace option value with boolean, if it is a string literal boolean

* style: use data type long

* test: add maven testfile kotlin.xml to travis build

* test: runnable maven test of the kotlin generator
2019-11-08 14:38:05 +08:00
William Cheng
b0b0e2b102
add sbt, bazel to integration (#4416) 2019-11-08 10:11:47 +08:00
Dominik Jastrzębski
7e7fb16e12 Add a blog post tutorial about generating Java clients using OpenAPI v3 (#4405) 2019-11-08 10:11:04 +08:00
William Cheng
e472d02669
add freshcells to company list (#4414) 2019-11-08 09:41:12 +08:00
sunn
048fe29226
Update isSet when the object is received from callback. (#4385) 2019-11-07 16:55:02 +01:00
Martin Slemr
f0bcaaf45d Ruby client nullable (#4391)
* Ruby Client: implementation of nullable

* Ruby samples with nullable implementation

* [Ruby] openapi_nullable as a Set and skipping attrs fix
2019-11-07 16:15:00 +08:00
Mathieu Lemoine
9a1ff9bf05 Fixes Kotlin client property names that include a dollar sign for template override (#4351)
Fixes #4228
2019-11-07 14:14:13 +08:00
Arun
649eab2868 [Python] [Performance] Avoid unnessacary checks inside the loop (#4305) 2019-11-07 10:49:54 +08:00
Amit Goldberg
9bfea4b7e5 Add QEDIT as a company that's using OpenAPI Generator (#4392) 2019-11-07 00:00:29 +08:00
sunn
c25a02f77f
update cpp flag for pistache (#4386) 2019-11-06 10:07:59 +01:00
Valentin
d635ac3973 Feature optional emit default values (#4347)
* This commit addresses issue #4346 and adds the proposed optionalEmitDefaultValues flag.

* ran /bin/cshapr-netcore-petstore.sh to create sample clients

* Fixed lost newline

* Ran script again to update samples
2019-11-06 12:02:59 +08:00
William Cheng
55737c236c
skip the test as async call may have finished (#4377) 2019-11-06 10:35:59 +08:00
William Cheng
c4f0b09459
Fix Jackson databind security issue (#4370)
* fix jackson databind security issue

* update groovy sample

* fix groovy dep version
2019-11-06 10:27:08 +08:00
William Cheng
16ad66759b
Add Kronsoft Development to the user list (#4371)
* Add Kronsoft Development to the user list

* add kronsoft to the user list
2019-11-05 15:47:52 +08:00
Denis Golovnev
1edbe956e3 Add https://qulix.com to list of companies using OpenAPI Generator (#4364) 2019-11-04 22:26:58 +08:00
Dmitry Grachikov
d16352a7b3 [JavascriptFlowtyped] Adding parent flow type to child type using "& ParentType" to allow flow js access parent fields from child types (#4263) 2019-11-04 16:56:24 +08:00
Arun
e3bfa282e5 [Python-Experimental]: Remove redundant else statement (#4324)
* [Python-Experimental]: Remove redundant else statement

* Run petstore
2019-11-04 16:32:53 +08:00
Jérémie Bresson
b4c72427fe [jaxrs-spec][quarkus] update to 0.27.0 (#4360) 2019-11-04 16:02:47 +08:00
William Cheng
4ca9430474 sync master, update doc 2019-11-04 09:38:22 +08:00
William Cheng
2ee2319552
minor doc update (#4359) 2019-11-04 09:29:52 +08:00
William Cheng
4824bb7711 sync master, update samples 2019-11-04 09:28:19 +08:00
Jim Schubert
b536119162
[cli][script] Fix misspelling in cli bootstrapping script (#4356) 2019-11-03 16:47:22 -05:00
William Cheng
61d7d22b24
smaller tests, better code format (#4355) 2019-11-03 23:18:09 +08:00
Jacob Bundgaard
f352fa6fb5 csharp-netcore: Replace null literals with default (#4345)
* csharp-netcore: Replace null literals with default

Same fix as applied to the csharp generator in #3537

* Update Petstore samples
2019-11-03 18:07:20 +08:00
Jérémie Bresson
10627ed5cc [core] consider polymorphism when computing unused schemas (#4335)
Fixed #4193
2019-11-03 18:05:40 +08:00
Thodin3
68dbf20d7e Fix issue 4326 forward throws for delegate to main method (#4327)
* Fix issue 4326 forward throws for delegate to main method

* Fix issue 4326 put throws for delegateMethod
2019-11-03 18:04:01 +08:00
Bruno Coelho
de9f56969d [kotlin][client] annotate api exceptions (#4339)
* [kotlin][client] annotate api call exceptions

* [kotlin][client] run petstores
2019-11-03 17:26:46 +08:00
Jason Lee
3f72f8da50 refactor java-vertx-web parameters and bugfix on non primitive parameter (#4353) 2019-11-03 17:24:46 +08:00
Denis Golovnev
f77b5da0f0 Remove deprecated API use of ObjectFactory.property() (#2613) (#4352) 2019-11-03 17:23:27 +08:00
Sai Giridhar P
ea600989f7 [python][metadata]: Adding license and author fields (#4318)
* fix(license): Fixing the license and author information

* fix(license): Fixing the license and author information

* fix(metadata): Adding default values for contact details and license fields

* fix(metadata): Adding default values for contact details and license fields
2019-11-03 14:58:39 +08:00
Arun
fe3b59d3c5 [Python] Avoid pep8 violation (#4316) 2019-11-03 14:48:42 +08:00
Mikhail Boldyrev
a9854ce71e [JS] Update package.json (#4261)
* Update package.json

* Update package.mustache

* Update package.json

* Update package.json

* Removed 'js:' in package.json and package.mustache
2019-11-03 14:13:40 +08:00
William Cheng
39bc13d244
Add slash-arun to Python technical committee (#4354)
Add slash-arun to Python technical committee
2019-11-02 18:33:33 +08:00
Erik Timmers
8882d9ab3f [typescript-fetch] Fix discriminator mapping name (#4340) 2019-11-01 14:25:37 +01:00
William Cheng
931908c77c
fix security alerts reported by github (#4344) 2019-11-01 11:16:36 +08:00
lwlee2608
a9ea8636e5 fix cpp-restbed-server json field serialization #4320 (#4323) 2019-11-01 10:56:12 +08:00
SAnDAnGE
cf29908ff2 typescript-angular: fix oneOf and anyOf generates incorrect model for primitive types (#4341)
* [typescript-angular] Fix importMapping;

https://github.com/OpenAPITools/openapi-generator/issues/3149

* [typescript] Fix oneOf/anyOf/allOf;

https://github.com/OpenAPITools/openapi-generator/issues/4130

* [typescript] remove unneeded mapping

https://github.com/OpenAPITools/openapi-generator/issues/3149

* [typescript] fix import paths and export

https://github.com/OpenAPITools/openapi-generator/issues/3149
2019-10-31 19:55:29 +01:00
Martin
cd11cc2615 fix(typescript-angular): do not call .toISOString() on a string (#4330) (#4337) 2019-10-31 15:05:36 +01:00
William Cheng
47e2c0d027
update samples (#4334) 2019-10-31 13:31:49 +08:00
William Cheng
34070bd151
Prepare 4.2.0 release (#4333)
* remove snapshot

* update doc
v4.2.0
2019-10-31 11:36:53 +08:00
Fjolnir-Dvorak
d624b28c96 [FEATURE][Haskell] Haskell-Servant serves static files (#4058)
* updated the golden files for haskell to be able to generate against those

* Haskell-servant now serves static files which are in a directory called "static"

* I missed to regenerate the docs directory
2019-10-30 20:47:53 -05:00
Fjolnir-Dvorak
4958ad74e7 [FEATURE][Haskell] Add Middleware support for the haskell servant generator (#4056)
* updated the golden files for haskell to be able to generate against those

* Added support for middlewares in the haskell servant generator.

* Renamed runOpenAPIPetstoreServer to runOpenAPIPetstoreMiddlewareServer and added a backwards compability version runOpenAPIPetstoreServer using requestMiddlewareId as middleware.
2019-10-30 20:47:35 -05:00
William Cheng
33f63d6163
Do not HTML escaped the description in the doc (#4321)
* html escaped the description in the doc

* update python oas3 sample
2019-10-31 09:10:05 +08:00
Sai Giridhar P
2188e0feda [r][license]: Fixing license and contact information (#4317)
* fix(license): Fixing the license information

* fix(license): Fixing the license information
2019-10-30 17:11:16 +08:00
Sai Giridhar P
ec3569e922 [python][fix] Adding model summary to model documentation files (#4306)
* feat(documentation): Adding model documentation

* feat(documentation): Adding model documentation

* feat(documentation): Adding model documentation

* feat(documentation): Adding model documentation
2019-10-30 17:10:02 +08:00
Sai Giridhar P
284c9dc6c5 feat(documentation): Adding model documentation (#4308) 2019-10-30 17:09:25 +08:00