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
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
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
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
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
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
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
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
Konstantin Pavlov
301208a785
JavaSpring: pojo: fix javadoc comment ( #1384 )
2018-11-07 11:26:56 +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
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
Benoît Courtine
293d29ab3b
Fixes bug #1339 . Array and Map inner schema can be missing. In this case, it must default to String. ( #1363 )
2018-11-03 22:19:19 +08:00
Kiran-Sivakumar
078b04deac
[Java][okhttp-gson] Add new ApiClient constructors for access token retry ( #1319 )
...
* Add new ApiClient constructors for access token retry
* Update samples
* Update security samples
2018-11-03 22:10:16 +08:00
sunn
f8f3a08282
[cpp-pistache]Add support for map ( #1359 )
...
* Add support for map
* Add support for nested maps
* Simplify Array and Map Helper
* Use const reference wherever possible
2018-11-03 14:09:31 +01:00
Juan Eugenio Abadie
ecff8b5d00
[cpp rest-sdk]Fix precision ( #1293 )
...
* Convert floating point numbers to string with higher precision
* Update PetStore
2018-11-01 20:25:38 +01:00
Ysawa
521f5fafa3
Fix defaultValue for String schama in Dart ( #1342 )
2018-11-01 17:50:01 +08:00
William Cheng
02e85cc417
Prepare v3.3.3-SNAPSHOT ( #1355 )
...
* prepare 3.3.3-snapshot
* update petstore samples
2018-11-01 10:42:26 +08:00
William Cheng
0cc9b69b6f
3.3.2 release ( #1353 )
...
* prepare 3.3.2 release
* update script to remove outdated reference
2018-10-31 20:48:14 +08:00
Dennis Kieselhorst
30474c7867
update CXF and Jackson to latest version ( #1343 )
2018-10-31 16:45:51 +08:00
William Cheng
aced89ff8b
Add group parameter support to PHP client ( #1337 )
...
* add group parameter support to php template
* more update for group parameter
* fix call to protect function
* fix missing $
* update based on feedback
* create fake endpoint to test group parameters
* sync fake petstore spec v2, v3
* fix php doc for group parameters
* update petstore samples
* update fake petstore spec v2
* update petstore samples
* fix spec and update samples
2018-10-29 15:42:32 +08:00
Juan Eugenio Abadie
d80f3a6197
[cpp rest-sdk] Constness ( #1295 )
...
* Improve method signatures to use const when the value won't change
* Update PetStore
* Change setters for non-primitive types to receive const reference parameters
* Update PetStore
2018-10-28 08:01:52 +01:00
micw523
107467497c
Fix W605 Warning and reenable flake8 ( #1334 )
2018-10-28 11:16:54 +08:00