William Cheng
2bcf5b2263
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
2018-11-15 17:49:44 +08:00
William Cheng
a87a544bf5
Merge remote-tracking branch 'origin/master' into 3.4.x
2018-11-15 17:11:01 +08:00
William Cheng
8d9542207a
Prepare 3.3.4 snapshot ( #1450 )
...
* change version to 3.3.4-snapshot
* updat readme
* update samples
2018-11-15 16:21:15 +08:00
William Cheng
31d9928734
Revert "force deployment"
...
This reverts commit e5c0d227ab2d1e6dc51c92f473aaaeb35d38b0b3.
2018-11-15 12:25:14 +08:00
William Cheng
e5c0d227ab
force deployment
2018-11-15 11:39:14 +08:00
James Addyman
653601bef2
Fix #1424 [SWIFT4] Date Encoding Issues ( #1442 )
...
Ensure the same date format string is used throughout the generated code (use the one set in Configuration.swift).
Ensure the same date formatter options are used when encoding dates as well as decoding dates. If a consumer has set their own date formatter on CodableHelper, use that when encoding dates too.
Adds DateFormatTests to the SWIFT4 unit tests.
Updates the SWIFT4 petstore samples
v3.3.3
2018-11-15 11:20:39 +09:00
William Cheng
7564d629e7
prepare 3.3.3 release ( #1447 )
2018-11-14 23:56:58 +08:00
William Cheng
f647b2f24b
Add file post-processing to C++ client, server generators ( #1440 )
...
* add file post processing to cpp generators
* use clang to auto format cpp-restsdk code
* restore cpp-restsdk samples without clang format
2018-11-14 16:43:14 +08:00
William Cheng
0165b0fb33
test all generators with fake petstore spec 2.0, 3.0 ( #1439 )
2018-11-14 15:55:09 +08:00
Jim Schubert
df1819daa9
C# template refactor ( #737 )
...
* [csharp] Refactor to support third-party customization more easily
* [csharp] Regenerate OpenAPIClient sample
* create new csharp-refactor client gen
* update samples
* fix Locale.ROOT
* fix import
* remove outdated files, update samples
2018-11-14 14:41:42 +08:00
William Cheng
3c28946f1e
[Android] Fix compilation errors when there's no model defined ( #1438 )
...
* remove model import when there is no model
* fix android http client no model issu due to import
2018-11-14 14:02:05 +08:00
TNM Technologies
22902e72a1
fix( #1423 ): [JAVA] generating Map with jaxrs-reasteasy does not import ( #1426 )
...
* fix(#1423 ): [JAVA] generating Map with jaxrs-reasteasy does not import
the hashmap
https://github.com/OpenAPITools/openapi-generator/issues/1423
* fix(#1423 ): fix ensure-up-to-date issues for jaxrs-resteasy joda
samples
https://github.com/OpenAPITools/openapi-generator/issues/1423
2018-11-14 10:18:53 +08:00
William Cheng
efde4a8eb8
Fix issue with C# generator when the model name is "File" ( #1428 )
...
* fix get schema type in abstract c# class
* update c# petstore sample
2018-11-14 09:43:31 +08:00
Akihito Nakano
c8837ea414
Change entrypoint to docker-entrypoint.sh ( #1413 )
...
Run entrypoint script
2018-11-13 17:24:04 +09:00
William Cheng
7c3a2a5c07
Fix run-in-docker by disabling useSystemClassLoader ( #1418 )
...
* test run-in-docker in travis
* fix command path
* correct batch mode arg
* disable useSystemClassLoader
2018-11-12 22:07:46 +08:00
William Cheng
7e3149e675
fix npe when paramName is null ( #1416 )
2018-11-12 22:06:58 +08:00
meganemura
9db62f459a
Fix return_type parameter examples in ruby-client ( #1399 )
...
* Fix return_type parameter examples
* $ bin/openapi3/ruby-client-petstore.sh
2018-11-12 14:26:05 +08:00
William Cheng
c7349c7f88
Add top level x-group-parameters support ( #1405 )
...
* add top level x-group-parameters support
* update petstore samples
2018-11-12 14:25:32 +08:00
William Cheng
69a766882d
Add tip about running online openapi-generator via Docker ( #1415 )
...
Add tip about running online openapi-generator via Docker
2018-11-12 11:37:30 +08:00
William Cheng
7ce38aae38
Remove duplicated imports ( #1414 )
...
* remove duplicated imports
* fix model import in java
* update generator docs
* fix model import for retrofit2 client
2018-11-11 21:33:28 +08:00
sunn
fd46b4e566
Sanitize Model Import ( #1411 )
2018-11-10 21:07:49 +01:00
James Addyman
5711985ac3
Fix swift4 1406 ( #1407 )
...
* Fix warnings produced when using Swift 4.2
* Update Petstore client for Swift 4
2018-11-10 13:59:58 +09:00
William Cheng
7c6beb9692
update generator doc
2018-11-10 00:28:08 +08:00
sunn
8ba4b3a276
Sanitize names in case number is present ( #1409 )
2018-11-09 16:53:30 +01:00
Simas Abramovas
f802e63f9f
Add parcelizeModels cli option ( #1289 )
...
* Add parcelizeModels cli option
* Add info log to clarify the parcelization requirements.
* Update docs
2018-11-09 23:51:27 +08:00
sunn
0ed02c8e91
Fixes double prefixing during model import ( #1398 )
2018-11-09 16:49:47 +01:00
Eivind Bergstøl
93e2fc6355
Fixes an issue where code generator for Java produces not compileable ( #1357 )
...
code if the yml-definition does not have any type definitions. This
is normal if the api only uses simple datatypes (Int, String) for
inout/output.
2018-11-09 23:48:26 +08:00
William Cheng
60bc19e830
Add file post-processing to PHP generators ( #1402 )
...
* add file post processing to php
* restore php petstore client
2018-11-09 23:45:21 +08:00
William Cheng
d59230fd27
change python pool_thread default to 1 ( #1403 )
2018-11-09 23:44:47 +08:00
Benjamin Gill
4742f0086b
[rust-server] Re-instate ApiRequestParser ( #1388 )
...
* Re-instate ApiRequestParser
It turns out I was over-eager when removing file support and accidentally deleted some code that should have been kept. See https://github.com/OpenAPITools/openapi-generator/pull/547/files#diff-684007b298ee5998fa30732c261ea2fcL469 .
* Don't do html escaping of parameters
2018-11-09 11:23:59 +00:00
William Cheng
1522855915
update python petstore samples
2018-11-08 21:47:16 +08:00
sunn
75b1403c1e
[cpp-qt5] improvements for server and client ( #1284 )
...
- Remove pointer usage in generated models
- Use const reference wherever possible
- Reuse same super class for Qt5 client and server
- Support primitive return types for Qt5 client
- Add const reference to API calls
2018-11-08 14:18:57 +01:00
William Cheng
a023a0d0ca
update petstore samples
2018-11-08 18:32:48 +08:00
William Cheng
e6c97a1bc1
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
2018-11-08 18:18:12 +08:00
William Cheng
a186efed35
Merge remote-tracking branch 'origin/master' into 3.4.x
2018-11-08 18:17:29 +08:00
William Cheng
3969afb2ff
Add file post-processing to Kotlin generators ( #1400 )
...
* add post processing to kotlin file
* restore kotlin samples
2018-11-08 17:40:39 +08:00
William Cheng
2ef499faf3
[python] Avoid creating unused ThreadPools ( #1387 )
...
* Avoid creating unused ThreadPools
Instead, create ApiClient.pool on first request for .pool property.
avoids spawning n-cpus threads (the default for ThreadPool) at instantiation of every ApiClient
* update doc
* set pool_thread to None
2018-11-08 17:39:20 +08:00
William Cheng
34945427d4
fix java exception in apex codegen ( #1395 )
2018-11-07 22:32:22 +08:00
Benjamin Gill
5849dbaaca
Add tests for inline objects ( #1331 )
...
I think these tests cover all the problems with rust-server and inline objects I know about. This should show us when we've fixed the problem.
Also fixes a CI failure.
2018-11-07 11:07:53 +00:00
Steven Masala
73162cbcca
fix name sanitation when using kebab case filenaming ( #1314 )
...
* fix name sanitation when using kebab case filenaming
* remove whitespaces
2018-11-07 15:52:51 +08:00
Guy Gershoni
0e2e1bf715
Added tests and fix for issue #1392 . Fix regex generated in Ruby client. ( #1393 )
...
* Added tests and fix for issue #1392 . Param validation with regex not recognizing \d correctly in Ruby client.
* Added generated files to pass ./bin/utils/ensure-up-to-date which is run by circleci
2018-11-07 12:08:23 +08:00
William Cheng
f21640f6a1
update spring samples
2018-11-07 11:46:17 +08:00
Konstantin Pavlov
301208a785
JavaSpring: pojo: fix javadoc comment ( #1384 )
2018-11-07 11:26:56 +08:00
William Cheng
4245cf42dd
update generator doc
2018-11-07 01:02:44 +08:00
Christophe Bornet
2184a8a9b4
[Flask] Upgrade to flask-connexion 2.0.0 ( #1382 )
...
Fix #323
2018-11-06 18:37:50 +08:00
Benjamin Gill
30bfebfa16
Rust server html ( #1329 )
...
Builds on #1180 by @colelawrence. This addition to the rust-server generator enables the use of text/html responses as plaintext.
I've added an html endpoint to the sample to demonstrate that this works (and fixed the problem that that uncovered).
2018-11-05 16:14:23 +00:00
Martin Fidczuk
303b469fae
Allow package version to be passed on CLI (Rust fix) ( #1286 )
...
This MR allows package version to be specified in Rust in the generate argument list, with the argument `-DpackageVersion=<package_version>`. If this argument is present then the version in the resulting Cargo.toml file will be the passed value. If this argument is not present then the version in the OpenAPI definition file will be used, as per current behavior.
2018-11-05 16:12:43 +00:00
William Cheng
c95b1f4545
fix incorrect patternin aspnetcore ( #1371 )
2018-11-05 10:21:55 +08:00
William Cheng
fbc3ff8766
Add a link to an article about openapi-generator ( #1370 )
2018-11-05 08:17:22 +08:00
Nathan Broadbent
63b1c233c9
Fix issue with Ruby client where strings from example properties are not wrapped with quotes ( #987 )
2018-11-04 17:10:35 +08:00