5759 Commits

Author SHA1 Message Date
Martin Delille
7e6e87a857 fixup! Simpler timeout with QTimer::singleShot (#4430) (#4435)
* fixup! Simpler timeout with QTimer::singleShot (#4430)

* Move disconnect again

* Fix self assignement in HttpRequest.cpp.mustache
2019-11-10 17:05:22 +01:00
Martin Delille
d0b2465b89 Simpler timeout with QTimer::singleShot (#4430) 2019-11-10 11:40:11 +01:00
Martin Delille
3e87a5fbaf cpp qt5 client: fix prefix bug (#4432) 2019-11-10 09:44:45 +01:00
Jim Schubert
357f6caed5
[meta] Support Kotlin meta generator (#4156)
* [meta] Support Kotlin meta generator

* Guard against automatic scripts (assumptions for this script are not fulfilled by some CI which run "run all" type scripts)
2019-11-09 10:47:55 -05:00
William Cheng
db729be7df
[Go][Server] minor enhancement to the template (#4417)
* minor enhancement to the go server template

* update samples
2019-11-09 11:24:12 +08:00
Dennis Melzer
777e39007a Replace the old ResourceSupport (#4426)
#4425
2019-11-09 11:00:51 +08:00
Richard Whitehouse
de162f7f34
[Core, Rust Server, ASP.NET Core] Fix Codegen Operation Scope Consistency (#3495)
Fix Codegen Operation Scope Consistency

- Filter scopes based on operation

- Partially revert #1984 to not rely on custom attributes as to whether scopes exist

- Fix filtering global authentication schemes
2019-11-08 13:30:35 +00:00
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
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
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
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
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
4824bb7711 sync master, update samples 2019-11-04 09:28:19 +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
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
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
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
Sai Giridhar P
73db23a2d7 feat(documentation): Adding model documentation (#4309) 2019-10-30 17:08:33 +08:00
Sai Giridhar P
3082eda27e [r][documentation]: Adding model summary to model documentation files. (#4310)
* feat(documentation): Adding model documentation

* feat(documentation): Adding model documentation
2019-10-30 17:06:39 +08:00
Arun
eaca7b8d48 [Python] Remove redundant else statement (#4311)
* [Python] Remove redundant else condition

* Add indentation

* Reduce extra indent

* Avoid longer than 79 chars

* Remove trailing space after response_body

* [Python] Fix pep8 violation in imports

* Revert "[Python] Fix pep8 violation in imports"

This reverts commit bc69aaae7fa7739d0d48421e47a1a446f130c225.
2019-10-30 17:02:08 +08:00
Alec
b1984f3c49 [TS] Fixes typescript-axios "File custom.d.ts not found" when building consumer TS project (#4230)
* remove unused file

* build(package.json): update node and ts

* remove ref to ambient declaration

* remove other ref to ambient declaration

* remove all references to custom.d.ts, rebuild

* regenerate typescript axios samples
2019-10-30 09:22:46 +01:00
Josh Burton
9c46973bcb [dart-dio] Correctly handles import of Uint8List (#4313)
* [dart-dio] Correctly handles import of Uint8List

- updates dio and built_value dependencies

* [dart-dio] Updates sample
2019-10-30 15:33:26 +08:00