Paŭlo Ebermann
31f29be2a0
Use deterministic randomness in ExampleGenerator. ( #5068 )
...
* Update samples for nodejs + nodejs-google-cloud-functions.
* Fix example generator to use deterministic randomness.
This avoids changing results after each generation, and makes diff reviews easier.
* Update NodeJS samples.
This is the last "randomness" update. From now on the samples should only change if either the generator, the input or parameters change.
2017-03-15 17:15:13 +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
26b618241a
Merge branch 'update-samples-for-sync_master_230' into merge-2.3.0
2017-03-14 13:11:24 +01:00
Paul Ebermann
aba5abd15e
Update samples again after swagger-parser bump.
2017-03-14 12:54:11 +01:00
Paŭlo Ebermann
9be178b26a
Merge branch 'master' into new-sync-master-to-2.3.0
2017-03-13 21:42:41 +01:00
Paŭlo Ebermann
22de105895
Merge remote-tracking branch 'upstream/2.3.0' into merge-2.3.0
2017-03-13 21:26:39 +01:00
Paŭlo Ebermann
3a48ba8bfd
Update all the samples.
...
(except clojure + scalatra, because those are broken, will fixed with later master merge.)
2017-03-13 19:50:10 +01:00
jfiala
39eba39625
[Jaxrs-cxf] add ApiResponse/s to operation #4718 ( #4920 )
...
* add ApiResponse/s to operation #4718
* use spaces instead of tabs #4718
* fix alignment issues #4920
* fix alignment issues #4920
* replace tabs with spaces #4920
* updated samples #4920
2017-03-12 16:58:19 +08:00
wing328
d9ee34e250
Update travis.yml to cover Java-related server stubs ( #4992 )
...
* update travis to cover more test cases
* update artifactid
* update artifactid for msf4j
* update pom for better test naming
2017-03-10 22:22:40 +08: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
jfiala
871b3ceef7
update templates and samples for spring-boot #4719 ( #4736 )
2017-03-07 23:35:21 +08:00
jfiala
2f43f98cfa
update beanvalidation templates and samples jersey2 #4719 ( #4732 )
2017-03-07 23:35:06 +08:00
jfiala
6a7340378a
update beanvalidation templates + samples #4719 ( #4733 )
2017-03-07 23:34:40 +08:00
jfiala
1e8312782b
[Jaxrs-spec] Merge beanValidation/beanValidationParams.mustache ( #4731 )
...
* update beanvalidation templates #4719
* update jaxrs-sample #4719
2017-03-07 23:26:30 +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
Paŭlo Ebermann
a710149cdd
Fix #4898 for jaxrs ( #4918 )
...
* fix #4898 for JavaJaxRS (including all libraries).
* Updated samples for jaxrs (after fix for #4898 ).
2017-03-06 20:04:31 +08:00
Paŭlo Ebermann
6c9b0ce257
Update samples for Scalatra after 2.2.2. ( #4910 )
...
* Update samples for Scalatra after 2.2.2.
* [scalatra] Revert changes to build.sbt
Changes were made in conjunction with the new finch generator. This
reverts those changes to Scalatra's previous build.sbt.
* Update scalatra samples again after revert of part of #3905 .
2017-03-06 14:23:02 +08:00
Tony Tam
b9d9629a65
Merge pull request #4925 from jfiala/cxf_swagger-core_4924
...
[Jaxrs-cxf] Fix compile errors after update of swagger-core / add jackson dependencies to pom #4924
2017-03-05 10:31:02 -08:00
Johannes Fiala
f72340fb17
change jackson jaxrs version to 2.8.4 #4924
2017-03-05 19:17:27 +01:00
Paŭlo Ebermann
7b559b4422
Update samples for MSF4J after 2.2.2. ( #4915 )
2017-03-06 01:12:29 +08:00
Tony Tam
15a0bf5df5
Refactor nodejs generated code structure ( #4909 )
...
* read directly from templates
* refactor nodejs structure
* dont inject into global scope
* move to 2 spaces consistently
2017-03-06 01:10:01 +08:00
Paŭlo Ebermann
a91cbbe387
Update samples after 2.2.2 ( #4901 )
...
* Update petstore samples for Groovy.
* Update samples for JaxRS.
* Update samples for cpprest.
* Update samples for dart.
* Update samples for flash.
* Update samples for go.
* Update samples for html2.
* Update samples for lumen.
* Update samples for nancxfx.
* Update samples for objc.
* Update samples for sinatra.
* Update samples for tizen.
* Update samples for java-inflector.
2017-03-06 00:33:57 +08:00
Johannes Fiala
165076a427
add jackson dependencies to pom #4924
2017-03-05 17:30:17 +01:00
wing328
061f4d07d8
fix issue with pom dep in jaxrs jersey1 ( #4904 )
2017-03-03 22:25:59 +08:00
Bart Kummel
30c2b6f262
Improved ExampleGenerator ( #4797 )
...
* Improved ExampleGenerator:
- Now takes into account enum and uri/url formats for strings.
- Uses example for referenced objects if available.
- Proper examples get generated for specific numeric formats, because more specific formats now get checked before generic format.
- Honors min and max values for numerical properties, if set.
* Ran script `bin/nodejs-petstore-server.sh`.
* Renamed log to logger to conform to coding standard.
2017-03-03 18:38:19 +08:00
wing328
835c7c0e0c
[PHP][Silex] use original path name for path variable naming ( #4817 )
...
* use original path name in php silex
* fix path variable naming by camelizing the name
2017-03-03 16:49:00 +08:00
wing328
6c63558acc
better python flask readme ( #4844 )
2017-03-03 16:45:43 +08:00
Paŭlo Ebermann
88c9b6062d
Fix for #1219 ( #4875 )
...
* Update spring samples with current code.
This is done so I can see my own changes better.
* Regenerate samples after 2.2.2.
* use baseName instead of paramName for spring annotations.
* update spring petstore samples to show the effects.
2017-03-03 16:35:12 +08:00
Paŭlo Ebermann
0dab200f28
Update spring samples with current code. ( #4874 )
...
* Update spring samples with current code.
This is done so I can see my own changes better.
* Regenerate samples after 2.2.2.
2017-03-03 16:34:07 +08:00
Tony Tam
b43b3771b1
rebuilt
2017-03-01 14:14:52 -05:00
wing328
9e40700478
update jackson dependency and fix closing xml tag in jaxrs pom
2017-03-02 02:16:13 +08:00
wing328
f15267c717
add missing dependency to jaxrs pom
2017-03-02 01:56:27 +08:00
Tony Tam
655ba95b94
rebuilt
2017-03-01 10:04:39 -05:00
Tony Tam
4499a3c74c
rebuilt
2017-03-01 10:02:42 -05:00
Tony Tam
40da4769b0
rebuilt
2017-03-01 10:01:50 -05:00
Tony Tam
89168d5e89
rebuilt
2017-03-01 09:59:27 -05:00
Tony Tam
9aeedca4c3
rebuilt
2017-03-01 09:58:53 -05:00
Tony Tam
c9c9d9a258
rebuilt
2017-03-01 09:58:17 -05:00
Tony Tam
2cec6192a4
rebuilt
2017-03-01 09:57:38 -05:00
Tony Tam
af2749325d
rebuilt
2017-03-01 09:56:42 -05:00
jfiala
de727d7d60
[JaxrsResteasy] Improvements for Resteasy for Jboss EAP 4512 ( #4712 )
...
* add language for resteasy eap #4512
* first implementation of jaxrs-resteasy-eap #4512
* add support for joda and java8 datetime types #4512
* add new file JacksonConfig and new sample eap-joda #4512
* add dynamic swagger support to jaxrs-resteasy-eap #4512
* adapt readme for eap #4512
* add tests for jaxrs-resteasy-eap #4512
* cleanup tabs #4512
* cleanup tabs #4512
* cleanup tabs #4512
* cleanup tabs / regenerate without joda #4512
* regenerate with updated templates #4512
* fix test (wrong setter invoked) #4512
* fix test #4512
* fix no invocation #4512
* replace tabs with spaces #4512
2017-03-01 00:20:35 +08:00
gcernier
09e2bbe1ee
Fix of #3371 , to have a correct @ApiResponse's response type.
...
@ApiResponse's 'response' property now refers to its relative 'baseType', if defined.
2017-02-15 17:18:32 +01:00
clasnake
ee23f8e50c
Fix finch package name. ( #4755 )
2017-02-13 22:33:55 +08:00
wing328
acd10318f7
Merge remote-tracking branch 'origin' into sync_master_230
2017-02-10 23:31:36 +08:00
wing328
beadd6d740
update java server stub samples with new uuid mapping
2017-02-08 16:39:02 +08:00
wing328
bdf6957c08
update jaxrs spec petstore sample (mac)
2017-02-08 01:07:18 +08:00
jfiala
e9823a81a5
[Jaxrs-spec] fix usage of Jersey templates in shellscript ( #4722 )
...
* remove jersey templates #4720
* regenerate sample with jaxrs-spec templates #4720
2017-02-08 00:41:36 +08:00
wing328
c0fc66ebec
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2017-02-06 15:33:11 +08:00
wing328
509a156879
Merge branch 'jaxrs_beanval_final_4091' of https://github.com/jfiala/swagger-codegen into jfiala-jaxrs_beanval_final_4091
2017-02-06 15:13:03 +08:00
Markus
4900427bf5
[JAXRS-CXF] Issue 4569 - Re-added usage of contextPath in api.mustache (basePath) ( #4580 )
...
* jaxrs-cxf: Re-added usage of contextPath in api.mustache (basePath)
* jaxrs-cxf: Added useAnnotatedBasePath and generateNonSpringApplication flags
* useAnnotatedBasePath=true uses the @Path annotation in the generated interface to set the basePath, default is false
* generateNonSpringApplication=true generates a web.xml with CXFNonSpringJaxrsServlets. If useAnnotatedBasePath=true only one servlet will be created, otherwise one for each API
* jaxrs-cxf generateNonSpringApplication: removed creation of multiple servlets
Multiple servlets were generated if useAnnotatedBasePath was false.
This is not necessary as there is only ONE basePath per contract
* jaxrs-cxf: added sample generation for useAnnotatedBasePath and generateNonSpringApplication
2017-02-06 14:11:41 +08:00