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
4effa739eb
Add AnyType support to Java generators ( #6246 )
...
* add anytype support to java
* fix test
* fix primitive type
* update tests
* update samples
2020-05-11 15:27:03 +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
ea55968737
Evaluating https issues in CircleCI (on top of CiscoM31-maven-h… ( #5034 )
...
* replace http with https. Replace http://central.maven.org with https://repo1.maven.org
* replace http://www.apache.org/licenses/LICENSE-2.0 with https://www.apache.org/licenses/LICENSE-2.0
* Force HTTPS for mavenCentral gradle DSL
Co-authored-by: Sebastien Rosset <serosset@cisco.com>
2020-01-18 18:53:05 -05: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
Jean-François Côté
f94ff32b0c
[Play Framework] Regenerate the samples. It was very outdated ( #3760 )
...
* Generate the samples for Play Framework. It was very outdated
* Add java-play-framework to the ensure-up-to-date script
* Update samples
2019-08-27 11:13:12 -04:00
Daonomic
0a52f56ba4
Support for discriminator.mapping ( #536 )
2018-07-18 06:14:42 +02:00
Jérémie Bresson
059a3efe46
Regenerate samples ( #367 )
2018-05-08 16:44:51 +08:00
William Cheng
d74b4cdf8d
fix map type and collection format for form parameter (array) ( #356 )
2018-05-07 18:22:30 +08:00
Jérémie Bresson
2103fadab8
Fix package declaration for play-framework ( #332 )
2018-05-06 08:08:34 +02:00
Jérémie Bresson
4dc519b4fe
Rename groupId for java-play-framework ( #310 )
2018-05-04 10:22:42 +02:00
Jérémie Bresson
0ba2a9a250
Update java play framework samples OAS2 ( #286 )
...
* Regenerate play framework examples
* Add 'samples.ci' for manual files and update scripts
2018-05-03 08:19:59 +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
Jeremie Bresson
53597764c3
Add OpenAPI spec 3.0 support (beta)
...
Co-authored-by: Akihito Nakano <sora.akatsuki@gmail.com>
Co-authored-by: Jeremie Bresson <dev@jmini.fr>
Co-authored-by: Jim Schubert <james.schubert@gmail.com>
Co-authored-by: Martin Delille <martin@phonations.com>
Co-authored-by: Tomasz Prus <tomasz.prus@gmail.com>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2018-04-17 09:19:10 +02:00
William Cheng
2d898511a8
Add Play server samples to CircleCI ( #7501 )
...
* add play server samples to circle ci
* add pom.xml for java play framework
2018-01-26 09:48:51 +08:00
Jean-François Côté
e33b350c89
Fix an issue in Play Framework generator where a CSV is empty and transfered to the controllerImp with an empty item. ( #7496 )
2018-01-25 21:53:20 +08:00
wing328
73c338be58
Merge remote-tracking branch 'origin/master' into 2.4.0
2018-01-13 15:54:41 +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
Jean-François Côté
ebf4efe3ea
Fix issue #6867 : The apiPackage option was ignored ( #7316 )
...
* Fix issue #6867 : The apiPackage option is ignored in the template for Java Play Framework.
* use openjdk7 in travis to ensure it works with jdk7
2018-01-10 13:15:49 +08:00
craffael
9a284776d8
[Java] Fix serialization of the discriminator field when using GSON ( #7075 )
...
* set discriminator on object construction...
* regenerate all java samples
* run bin/java-msf4j-petstore-server.sh
* remove extra newline
2018-01-07 23:10:32 +08:00
Jean-François Côté
3465f2918e
Fix a regression bug that was introduce in a recent commit. Removed the tabs that were causing error in Play Framework ( #7241 )
2018-01-07 10:48:49 +08:00
Ville Skyttä
794bb07cf7
Spelling fixes ( #7142 )
2017-12-10 10:48:30 +08:00
Maxim Zinchenko
a8642dbdfc
[Java][Spring][Server] Issue #4680 ( #6890 )
...
* Issue #4680 correct values for enum with escaped double quotes
* Issue #4680 regenerate samples
* Issue #4680 remove new lines
* Issue #4680 fixed scripts
* Issue #4680 update samples under CentOS
2017-11-27 18:30:39 +08:00
Guillermo Pastor
65bb761952
Fix: Resolve problem with UUID class not found if there is almost one parameter with format as uuid ( #6617 )
...
* feat: java.util.UUID if parameter is UUID
* solve git problem
2017-11-22 16:54:11 +08:00
Jean-François Côté
16373b9f70
Fix the fake endpoint example. Now all cases are handled by the java play framework! ( #6850 )
2017-11-02 17:54:34 +08:00
Jean-François Côté
18ba90f5ac
[JavaPlayFramework] Add parameters for beanValidation in the application.conf + fix bugs ( #6794 )
...
* Add configuration to split input and output bean validations. When useBeanValidation is used, the variable are created in the application.conf file and can be tweaked by environment. For example, dev and stage can have true to both but only have input in prod.
* Refactor of mustache tags for more clarity
* sample generation with refactor
* Fix a couple of bugs with the fake-endpoint yaml but there is still 2 cases where it doesn't work.
2017-10-27 22:48:27 +08:00
Jean-François Côté
8b70f24371
There was no validation when a required field was null, creating crash and null pointer exception further down the line in the business code. Now, it throws a InvalidArgumentException. ( #6673 )
2017-10-16 21:23:05 +08:00
Jean-François Côté
d80c0f5546
[Java Play Framework] Fix a small error of using paramName instead of baseName ( #6395 )
...
* Fix a small error of using paramName instead of baseName
* Add sample generation
2017-08-30 17:58:24 +08:00
Jean-François Côté
006b97525f
Update the Java Play Framework generator to version 2.6.3 ( #6356 )
2017-08-24 10:23:10 +08:00
Jean-François Côté
ab28c7c825
[Java Play Framework] Remove most warnings + bug fixes ( #6275 )
...
* Removals of most of the warnings found by lint
* Removals of most of the warnings found by lint (PART 2)
* Removals of most of the warnings found by lint (PART 3)
* Removals of most of the warnings found by lint (PART 4)
* Removals of most of the warnings found by lint (PART 5)
* Fix conversion error
* Removal of unnecessary import. Other will need more complex login in the generator itself (not in the mustache files)
* Add missing imports + fix to the regex. Generation of the samples
2017-08-11 15:38:18 +08:00