wing328
1da52bf8ba
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-11 21:43:34 +08:00
wing328
12bcb18e9e
Merge branch 'java-spring-throw-exceptions-#5686' of https://github.com/stevecookform3/swagger-codegen into stevecookform3-java-spring-throw-exceptions
2017-06-11 17:30:53 +08:00
manuc66
c5335081ea
fix the mustache file ( #5736 )
2017-06-11 15:34:09 +08:00
wing328
98684d872c
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-01 07:10:03 +08:00
Jonathan Leitschuh
d6f2424152
Fix spring generated controller annotations only generating for first return type ( #5399 )
...
Fixes the spring java code generator so that the ApiResponse fields are populated correctly
on the controller.
Related to #4693
2017-05-31 17:27:32 +08:00
stevecookform3
0f3f0686cc
Throw Exception from controller methods
2017-05-31 09:46:51 +01:00
Elizabeth Thomas
41cfcc6f23
Marking Accept as an optional header ( #5622 )
...
* Making Accept Header as not required by default
* Adding the auto-generated spring mvc petstore sample controllers
2017-05-16 16:30:11 +08:00
wing328
b8715fc4a5
add back example support to java spring (breaking changes) ( #5606 )
2017-05-10 23:31:25 +08:00
wing328
45ff39c237
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-10 18:04:49 +08:00
wing328
9b68f02f83
[Java][Spring] Undo "Add examples defined in the spec to Spring MVC server generator " ( #5599 )
...
* remove unused pom.xml in go pestore
* remove example support in JavaSprin (undo changes)
2017-05-10 17:31:43 +08:00
Eric Bélanger
fa2e575762
[JavaSpring] add support for cascading bean validation ( #5393 )
2017-05-09 00:38:59 +08:00
wing328
fb357086c8
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-04 19:04:39 +08:00
Andrea Polci
fd17955685
#5548 Avoid html escaping of pattern in bean validation ( #5549 )
...
* Issue #5548 Avoid html escaping of pattern in bean validation
* Run spring-all-petstore.sh and java-petstore-all.sh scripts
2017-05-04 17:12:13 +08:00
wing328
3b98cc7ca0
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-03 17:32:24 +08:00
Kenny Jones
06f8ac422c
Bugfix: JavaSpring pojo example escape ( #5536 )
...
Applies the same fix as #5247 to avoid invalid escaping of the attribute
example within `ApiModelProperty`.
Resolves #5534
2017-05-03 15:31:48 +08:00
wing328
2ac169c750
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-28 02:03:42 +08:00
wing328
2324e927bd
[Java][Spring] fix missing import for java.io.IOException ( #5501 )
...
* fix issue about import io exception for spring mvc
* fix spring-mvc-petstore-j8-async script, config
* update spring cloud client, restore petstore.yaml
2017-04-28 00:45:06 +08:00
wing328
7b57dd0c04
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-27 21:18:52 +08:00
wing328
3c9b495eb1
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-27 21:16:16 +08:00
wing328
42a5a13fef
[Java][Spring] Fix spring cloud client due to enhancement in adding server example responses. ( #5497 )
...
* add use spring cloud client option
* uncomment spring cloud client test
* remove scala-related tests from pom.xml for circleci
* fix mismstach tag
2017-04-27 20:00:56 +08:00
wing328
58db6a5e14
Revert "Issue#5376- changes to include swagger version in generated api files ( #5449 )" ( #5489 )
...
This reverts commit 702f193f6191a8f6d0b59f2d34292c616e7bcc4d.
2017-04-26 17:53:36 +08:00
wing328
f4d78079de
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-25 23:34:45 +08:00
Elizabeth Thomas
702f193f61
Issue#5376- changes to include swagger version in generated api files ( #5449 )
...
* Elizabeth - changes to include swagger version in generated api files
* Filtering version.properties in swagger codegen module
* Removing resource filtering from swagger codegen cli module
* Merging master
2017-04-25 23:28:16 +08:00
Elizabeth Thomas
efb337dd92
Issue 5413 - Use ConstructorBased Injection for ObjectMapper ( #5430 )
...
* Converting to constructor based injection
* Correcting spelling mistake
* Adding the bean for ObjectMapper
* Adding files modified by running the petstore scripts
* Adding final qualifier to objectMapper variable in apiController mustache
2017-04-25 23:11:18 +08:00
wing328
3ef7694b9f
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-25 21:39:17 +08:00
Kenny Jones
c14da15b3e
Feature: Enable validation ( #5391 )
...
When useBeanValidation is enabled make sure the annotation @Valid
is added to the attributes of the model.
2017-04-24 23:18:04 +08:00
wing328
c8d9450db5
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-23 22:46:10 +08:00
wing328
ee5c1b203b
fix typo: lamda -> lambda
2017-04-23 22:28:29 +08:00
wing328
f7cbb2c0e6
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-23 15:26:15 +08:00
wing328
813949dd00
add lamda to clean up examples, fix spring tempalate format
2017-04-18 18:14:00 +08:00
wing328
a17e80dfb1
minor fix to spring use of examples
2017-04-18 01:42:29 +08:00
wing328
c7ccb1a9a9
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-17 23:05:46 +08:00
Elizabeth Thomas
ec4b3307fe
Merge pull request #1 from elizabetht/master
...
Elizabeth/Joy - adding example support if specified in the swagger spec
2017-04-13 10:02:23 -05:00
Thomas, Elizabeth-CW
02bcad36fd
Elizabeth/Joy - adding example support if specified in the swagger spec
2017-04-13 09:31:07 -05:00
wing328
4e6a342c13
replace tab with 4-space in spring templates ( #5389 )
2017-04-13 19:03:34 +08:00
wing328
50c6f87d98
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-13 17:48:34 +08:00
dhuning
8cf0f7046e
Adds @Valid to request body for the JavaSpring ( #4850 )
...
* Adds Valid annotation for request body (#4847 )
If useBeanValidation is active, this change will add Valid annotation to ReqeustBody
* Adds generated samples for bean vaildation in spring boot (#4847 )
* Adds Valid import to Controller
* Adds generated code for bean validation change
2017-04-13 17:42:02 +08:00
Benjamin Douglas
ab69ce5dc3
Add null pointer check to add/put methods ( #5385 ) ( #5386 )
...
Commit e3d04ee01 (issue #5240 ) introduced unsafe add/put methods for optional
list/map parameters. This change maintains the spirit of issue #5240 (optional
containers are null by default) while still making add/put calls safe. It does
this by checking for null first and, if so, initializing it with an empty
container.
Also updated the affected samples using the various scripts in bin/.
2017-04-13 17:37:49 +08:00
wing328
1f4261d20b
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-11 22:29:28 +08:00
wing328
1fdd3e6ffa
[Java][Spring] fix enum allowable values in Spring generators ( #5364 )
...
* fix enum allowable values in spring generators
* use values instead of enumVars in spring annoation
2017-04-11 22:23:09 +08:00
wing328
e3d04ee01f
[Java] remove initialization for optional list property ( #5363 )
...
* set list to null in java if not required
* update petstore sample for java server stub
* update sample for msf4j
* add null assignment to new list/map in java
2017-04-11 19:07:48 +08:00
wing328
c35fdc3bda
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-10 14:39:48 +08:00
anuthebananu
19d5e74dbd
[Spring] Adds serialVersionUID to serializable model POJO's ( #5347 )
2017-04-07 09:17:29 +08:00
wing328
bea9e265e9
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-22 20:52:26 +08:00
wing328
52e42701bd
Merge branch 'master' of https://github.com/techlogix/swagger-codegen into techlogix-master
2017-03-21 23:29:08 +08:00
Paŭlo Ebermann
9be178b26a
Merge branch 'master' into new-sync-master-to-2.3.0
2017-03-13 21:42:41 +01:00
pablograna
fb75996527
Make java spring controller constructor public. ( #4972 )
...
* Make java spring controller constructor public.
This lets users manually create the controller and inject the delegate in the
spring configuration file, instead of letting spring scan for controllers and
autowire the delegate.
* Ran spring-all-pestore.sh.
2017-03-09 23:11:44 +08:00
Rohit Sood
11856e9712
Update Spring Fox dependency version to 2.6.1. This fixes a defect where Swagger and Feign clients do not conflict when registration occurs with Eureka.
2017-03-09 09:54:49 -05:00
jfiala
871b3ceef7
update templates and samples for spring-boot #4719 ( #4736 )
2017-03-07 23:35:21 +08:00
dhuning
6ea3315b3e
Implicit headers for SpringCodegen ( #4858 )
...
* Add a new option implicitHeaders with default false
* Change JavaSpring templates and codegen to handle implicit headers
* Add script to generate sample for implicitHeader option
* Add generated implicitHeader sample
* Fix alignment
2017-03-07 14:54:15 +08:00