wing328
6814530d69
fix enum in path parameter (spring) ( #6810 )
2017-10-25 22:30:36 +08:00
Will Neild
e4abddf253
Fix spring api operation annotation ( #6700 )
...
* * Fix apioperation annotation using generics in class reference for spring server generation
* * Regenerate classes for new spring template
2017-10-18 16:38:12 +08:00
Elias Ovchynnikov
3f7f6b8599
Add operationId as nickname to @ApiOperation ( #6688 )
...
* Add operationId as nickname to @ApiOperation
* Refresh samples after adding nicknames to @ApiOperation
2017-10-16 10:18:32 +08:00
wing328
d054a43b65
update java server samples
2017-10-09 23:00:44 +08:00
stevecookform3
adfe4b6e6c
add @Valid/@Validated annotations to controller methods/nested models ( #6254 )
...
* add @Valid/@Validated annotations to controller methods and nested models
* update spring samples
2017-08-11 08:44:51 +08:00
wing328
c05db535e1
Merge branch 'issue-3371' of https://github.com/gcernier-amadeus/swagger-codegen into gcernier-amadeus-issue-3371b
2017-08-08 15:31:52 +08:00
wing328
92b129708d
update spring samples
2017-08-02 16:43:54 +08:00
wing328
25a46374c5
Updated Spring, Boot, Fox and Cloud dependencies ( #5969 )
...
* updated Spring, Boot, Fox and Cloud dependencies
* run scripts for java, jaxrs-cxf and spring samples (although changes are not related to my changes)
* update jersey java8 petstore samples
* update java feign samples
* update java petstore samples
* add new files for java petstore clients
* roll back spring cloud dep version
* fix jaxrs-cxf error
2017-07-03 18:44:22 +08:00
wing328
afd535f415
rollback to 2.6.4 for jackson threetenbp in springmvc
2017-07-01 23:46:31 +08:00
wing328
8d31e57e2a
fix spring dep version
2017-07-01 22:22:02 +08:00
wing328
9269dac6cf
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-01 15:47:27 +08:00
Dennis Kieselhorst
407d728908
updated Spring and Spring Boot dependencies ( #5948 )
2017-06-29 22:28:08 +08:00
Dennis Kieselhorst
a64c7d7986
updated jackson-version ( #5943 )
2017-06-29 10:56:12 +08:00
Dennis Kieselhorst
e3da4f9fde
updated maven-war-plugin ( #5941 )
2017-06-29 00:14:16 +08:00
wing328
fee54157c0
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-15 17:14:39 +08:00
wing328
e58342bacb
udpate spring samples
2017-06-15 14:33:16 +08:00
Paŭlo Ebermann
4b9988c4f2
Update samples for several language (just whitespace changes, reordering, VERSION) ( #5828 )
...
* Update samples for several languages.
Just whitespace changes and some reordering where the order doesn't matter.
* Adding generated .swagger-codegen/VERSION files.
2017-06-14 01:17:31 +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
wing328
f163fdb980
update spring samples
2017-06-11 15:39:08 +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
b185d03a1b
update Spring petstore examples
2017-05-31 09:48:34 +01:00
wing328
e1e5ac4d37
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-17 22:00:06 +08:00
wing328
0a67696de8
Merge branch 'empty_classes' of https://github.com/bbdouglas/swagger-codegen into bbdouglas-empty_classes
2017-05-16 17:51:42 +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
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
b5949f61e4
update spring petstore samples
2017-04-27 22:24:23 +08:00
wing328
f4d78079de
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-25 23:34:45 +08:00
wing328
3ef7694b9f
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-25 21:39:17 +08:00
wing328
4067986e1c
update spring mvc samples
2017-04-24 00:06:42 +08:00
wing328
f7cbb2c0e6
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-23 15:26:15 +08:00
wing328
a1e745bdda
add back petstore sample for spring boot with bean validation
2017-04-19 01:09:14 +08:00
wing328
813949dd00
add lamda to clean up examples, fix spring tempalate format
2017-04-18 18:14:00 +08:00
Benjamin Douglas
9058099e5b
Add alias type definitions for Java
...
When a spec defines a Model at the top level that is a non-aggretate type (such
as string, number or boolean), it essentially represents an alias for the simple
type. For example, the following spec snippet creates an alias of the boolean
type that for all intents and purposes acts just like a regular boolean.
definitions:
JustABoolean:
type: boolean
This can be modeled in some languages through built-in mechanisms, such as
typedefs in C++. Java, however, just not have a clean way of representing this.
This change introduces an internal mechanism for representing aliases. It
maintains a map in DefaultCodegen that tracks these types of definitions, and
wherever it sees the "JustABoolean" type in the spec, it generates code that
uses the built-in "Boolean" instead.
This functionality currenlty only applies to Java, but could be extended to
other languages later.
The change adds a few examples of this to the fake endpoint spec for testing,
which means all of the samples change as well.
2017-04-17 12:58:31 -07:00
wing328
34a99d6dba
update spring petstore samples
2017-04-17 23:32:03 +08:00
wing328
c7ccb1a9a9
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-17 23:05:46 +08: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
wing328
0682e41d6d
update spring petstore sample
2017-04-13 17:44:38 +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
956e7b4cb5
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-04 23:04:25 +08:00
Paŭlo Ebermann
f0b0226e46
[Java][JaxRS][Spring-MVC] Update samples for jaxrs with Jersey 1/2 and for spring-mvc ( #5212 )
...
* Update samples for Spring-MVC.
* Update samples for Spring-MVC-Jav8-async.
* Update samples jaxrs/jersey1.
* Update samples jaxrs/jersey2.
* Update samples spring-mvc
* Update samples spring-mvc-j8-async
2017-04-04 21:41:22 +08:00
Paŭlo Ebermann
e1b1edf958
Merge branch 'merge-2.3.0' into new-sync-master-to-2.3.0
2017-03-14 21:04:47 +01:00
Paul Ebermann
aba5abd15e
Update samples again after swagger-parser bump.
2017-03-14 12:54:11 +01:00