Januson
c49d8fda8e
[M][REQ][JAVA]: Add option to generate arrays with "uniqueItems" true as Sets rather than Lists ( #5466 )
...
* [REQ][JAVA]: Add option to generate arrays with "uniqueItems" true as Sets rather than Lists
- Update Java code generation to use sets instead of lists when uniqueItems is set to true
- Add import resolution for sets
- Add tests and fix broke tests
resolve #5254
* Update Javascript, Perl, Python and Ruby to preserve current functionality.
* Switch set implementation to LinkedHashSet
* Fix missing import for uniqueItems used on param.
* Fix missing import and return type for responses with uniqueItems
* Fix default values for array of enum
* Update generated samples
* fix merge issue
* Update generated samples
Co-authored-by: William Cheng <wing328hk@gmail.com>
2020-05-21 13:27:57 +08:00
William Cheng
82e2448bf2
Merge remote-tracking branch 'origin/4.3.x' into 5.0.x
2020-01-20 15:46:13 +08:00
William Cheng
04af5e0445
Merge remote-tracking branch 'origin/master' into 4.3.x
2020-01-20 15:04:34 +08:00
Jim Schubert
78bf3adc4a
[core] Initial FeatureSet structures and definitions ( #3614 )
...
[core] Initial FeatureSet structures and definitions
Add default feature set to DefaultCodegen
Initial FeatureSet definitions for:
* ada
* android
* apache2
* asciidoc
* aspnetcore
* avro
* bash
* c
* clojure
* cpp-pistache-server
* cpp-qt5-client
* cpp-qt5-qhttpengine-server
* cpp-restbed-server
* cpp-restsdk
* cpp-tizen
* csharp
* csharp-nancyfx
* csharp-netcore
* cwiki
* dart
* eiffel
* elixir
* elm
* erlang
* flash
* fsharp-functions
* go Client/Server
* graphql-nodejs-express-server
* graphql-schema
* groovy
* haskell
* haskell-http-client
* java
* jmeter
* kotlin
* kotlin vertx
* kotlin-server
* kotlin-spring
* lua
* mysql
* nim
* nodejs
* nodejs-express
* objc
* ocaml
* openapi
* openapi-yaml
* perl
* php
* php-laravel
* php-lumen
* php-silex
* php-slim
* php-symfony
* php-ze-ph
* powershell
* protobuf
* protobuf-schema
* python
* python-aiohttp
* python-blueplanet
* python-experimental
* r
* ror
* ruby
* ruby
* ruby-sinatra
* rust
* scala-akka
* scala-finch
* scala-gatling
* scala-http-client
* scala-lagom
* scala-play
* scalatra
* scalaz
* spring
* static docs
* swift
* typescript
2020-01-11 16:20:47 -05:00
William Cheng
b450ce8a5a
Merge remote-tracking branch 'origin/4.3.x' into 5.0.x
2019-12-28 12:34:30 +08:00
William Cheng
81e15ed0bf
Merge remote-tracking branch 'origin/master' into 4.3.x
2019-12-28 12:00:09 +08:00
Jim Schubert
376e419d0b
Support models with multi-level hierarchy (via roxspring) ( #4503 )
...
* Example of broken multi-level hierarchy
* Support for multiple levels of hierarchy in model objects
* Support for multiple levels of hierarchy in generators
* Regenerated samples
* Temporarily skip scalaz sample verification, which is having issue with Java version in CI container
* Re-enable scalaz in verify samples
Co-authored-by: Rob Oxspring <roxspring@imapmail.org>
2019-12-27 15:42:32 +08:00
William Cheng
11c7007429
Prepare v4.2.3 ( #4663 )
...
* update version
* update doc
* update samples
2019-12-02 15:26:01 +08:00
William Cheng
4ed742b6bc
update samples
2019-11-21 15:24:13 +08:00
William Cheng
facabd4472
Merge branch '4.3.x' into 5.0.x
2019-11-21 15:19:31 +08:00
William Cheng
f07b3e0521
Prepare 4.2.2-SNAPSHOT ( #4497 )
...
* update to 4.2.2-SNAPSHOT
* update doc
* update samples
* skip ocaml test
* update version
* fix version
2019-11-15 21:34:25 +08:00
William Cheng
4824bb7711
sync master, update samples
2019-11-04 09:28:19 +08:00
William Cheng
47e2c0d027
update samples ( #4334 )
2019-10-31 13:31:49 +08:00
William Cheng
8f86f0f04a
Merge remote-tracking branch 'origin/4.2.x' into 5.0.x
2019-10-08 21:21:04 +08:00
William Cheng
d4500b307f
Merge remote-tracking branch 'origin/master' into 4.2.x
2019-10-04 15:02:58 +08:00
William Cheng
7dbda049f0
Better tests for string (number) ( #3953 )
...
* beter test for string (number)
* fix mapping
* fix mapping in csharp generators
2019-09-30 15:22:44 +08:00
William Cheng
5eb67d471b
Merge remote-tracking branch 'origin/4.2.x' into 5.0.x
2019-09-22 21:00:38 +08:00
William Cheng
3019b5a5e1
Merge remote-tracking branch 'origin/master' into 4.2.x
2019-09-22 14:18:07 +08:00
William Cheng
ea029b4029
update doc, samples ( #3875 )
2019-09-11 21:17:11 +08:00
William Cheng
3ebefccfa9
Prepare v4.1.2 release ( #3873 )
...
* update samples
* update date
2019-09-11 18:33:27 +08:00
Benjamin Simpson
239d68df36
[Java][okhttp-gson] fix failure to deserialize floats ( #3846 )
...
* fixed bug where nullApi.java would be generated. Instead, generated DefaultApi.java to match the default path /{pathParam}
* fix to bug #3157
* update samples
2019-09-07 12:36:19 +08:00
William Cheng
a8fe5d355c
Merge remote-tracking branch 'origin/4.2.x' into 5.0.x
2019-08-29 14:48:00 +08:00
William Cheng
9182784955
Merge remote-tracking branch 'origin/master' into 4.2.x
2019-08-28 14:01:20 +08:00
William Cheng
d0d545bbdd
Prepare 4.1.2 snapshot ( #3758 )
...
* update pom
* update samples
* update ts axios samples
2019-08-26 22:13:12 +08:00
Slavek Kabrda
5182955cca
[Java][client] make it possible to send explicit nulls for nullable fields ( #3474 )
...
* [Java][client] make it possible to send explicit nulls for nullable fields
* Regenerate samples
2019-08-16 16:26:06 +08:00
William Cheng
c3535cf9ca
Add test cases to cover different collection formats ( #3640 )
...
* add test cases to cover different collection format
* add space params to retrofit 1.x
* add space params to retrofit 2.x
* rename url to localVarUrl
* fix exception in haskell servant
2019-08-15 11:09:12 +08:00
William Cheng
01222268e8
update samples
2019-08-11 18:56:47 +08:00
William Cheng
5956569e7a
Prepare 4.1.1-SNAPSHOT ( #3603 )
...
* update pom
* update samples
* update pom
2019-08-10 09:41:08 +08:00
William Cheng
7e457f7e41
sync master
2019-06-03 00:32:13 +08:00
William Cheng
8d3a1a5add
Merge remote-tracking branch 'origin/master' into 4.1.x
2019-06-03 00:06:43 +08:00
Jérémie Bresson
dc81574f2b
Update version to 4.0.2-SNAPSHOT ( #3047 )
...
* Update version to 4.0.2-SNAPSHOT
* Update samples
* Change AppVeyor script (test of gradle sample)
* Fix release version bump script (gradle plugin, sample poms)
* Include sonatype snapshots in maven examples which reference 4.0.2-SNAPSHOT
2019-06-01 21:32:44 -04:00
William Cheng
94fc0474b9
update version 5.0.0-snapshot and samples
2019-05-15 01:54:29 +08:00
William Cheng
24187b8186
update petstore samples
2019-05-15 00:10:03 +08:00
William Cheng
cbe39ba881
Set version to 4.0.1-SNAPSHOT ( #2882 )
2019-05-14 10:28:32 +02:00
Matthieu Berthomé
ee43cc1520
handle composed schemas in InlineModelResolver ( #2112 )
...
* handle composed schemas in InlineModelResolver
* fix unit test -> TestUtils.parseSpec
* update samples
* fix samples
* update samples
* update samples
* add new files
2019-05-08 10:19:15 +08:00
Vincent Devos
0ae43fcb7a
[Elixir] update to 1.6 version ( #2741 )
...
* [Elixir] update version / add test
* update samples (add missing 200 responses in petstore-with-fake-endpoints-models-for-testing.yaml)
* [Elixir] update to 1.6 version
* [Elixir] fix test petapi
2019-04-26 22:38:11 +08:00
Justin Black
b67318ef21
Adds spec additionalProperties + nullable examples ( #2405 )
...
* Adds v2 spec additionalproperties examples, adds v3 spec nulllable model example, updates samples
* Remaining samples updates
* Adds csharp generator update to handle models with multilevel parent types, which works for the AdditionalPropertiesObject model, samples updated
2019-03-20 15:31:28 +08:00
Vincent Devos
49ef024cf6
[java-server-msf4j] fix and upgrade ( #2303 )
2019-03-07 15:59:32 +08:00
OmriHarary
ca0c35aa15
[java-server] Fix improper quoting of default values for query parameters ( #708 )
2018-08-21 10:17:31 +02:00
Jérémie Bresson
059a3efe46
Regenerate samples ( #367 )
2018-05-08 16:44:51 +08:00
Jérémie Bresson
19b0d37c38
Generate java-msf4j ( #225 )
2018-04-26 10:41:17 +02:00
Jérémie Bresson
7ecd5f3566
Rename "swagger" to "openapi" ( #191 )
...
* Rename ".swagger-codegen-ignore" to ".openapi-generator-ignore"
* Rename setGenerateSwaggerMetadata(Boolean) to setGenerateMetadata(Boolean)
* Rename Metadata Folder to .openapi-generator
2018-04-22 21:28:17 +02:00
etondoze
d1a296412e
Upgraded swagger-parser and swagger-core versions ( #7497 )
2018-01-25 21:35:11 +08:00
William Cheng
389344726e
Split CircleCI test into JDK7, JDK8 specified tests ( #7405 )
...
* split out circleci pom for jdk7, jdk8
* update circle config to use jdk7 pom
2018-01-15 16:46:33 +08:00
William Cheng
8aef689d1b
[Java] allow setting boolean getter (is, has, get) in templates ( #7344 )
...
* allow setting java boolean getter (is, has, get) in templates
* update msf4j boolean getter
* update jaxrs-spec boolean handler
* update jaxrs boolean getter
* update reasteasy, spring, cxf boolean getter
* update inflector boolean getter
* update java play boolean getter
* update java boolean getter
* update spring samples
2018-01-13 15:19:02 +08:00
Ville Skyttä
794bb07cf7
Spelling fixes ( #7142 )
2017-12-10 10:48:30 +08:00
William Cheng
ffa0151445
fix msf4j return type annotation ( #7110 )
2017-12-05 17:23:04 +08:00
wing328
9269dac6cf
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-01 15:47:27 +08:00
Jordan Zimmerman
b2efb70410
Support a true "java8" option ( #5864 )
...
* Closes #5863
The "dateLibrary" option for java, sadly, sets a mustache value "java8". This change updates this so that "java" in the mustache
libraries means what it should mean - use all java8 classes. In this case, there's no need for the third party Base64 library
as java8's JDK has this built in. In my view, the "dateLibrary" should be deprecated but that should be a separate PR.
* updated samples
* fixed tests for new CLI java8
* regenerated samples after master merge
* oops - left in an end tag after master merge
* rerun checks
* rerun checks
2017-06-29 13:23:44 +08:00
wing328
e7561a11f4
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-28 15:35:24 +08:00