William Cheng
6e2ca294b5
update discriminator to discriminatorName ( #142 )
2018-04-19 15:02:22 +08:00
Jeremie Bresson
74075c087e
Primitive datatype in Schema components
...
Fix for https://github.com/swagger-api/swagger-codegen/issues/7754
2018-04-19 07:15:10 +02:00
William Cheng
9fdcb3681b
Update ObjC petstore and test cases ( #139 )
...
* restore objc samples from codegen 2x
* update objc petstore test
* update objc with oas3 petstore
2018-04-19 12:08:00 +08:00
William Cheng
231547f6c7
fix isFile flag in response ( #135 )
2018-04-19 09:18:30 +08:00
William Cheng
d8abd4a14b
support map in body parameter ( #134 )
2018-04-19 09:18:13 +08:00
William Cheng
f9bc1aec9d
update scalatra petstore with oas3 ( #132 )
2018-04-19 09:17:44 +08:00
William Cheng
74ddbf7a16
update scalatra with oas2 spec ( #131 )
2018-04-19 09:16:52 +08:00
William Cheng
0feef2b57e
Update akka-scala petstore with OAS2, fix description in responder header ( #129 )
...
* update akka-scala sample by codegen 2x
* fix description in response headers, update akka scala generator
2018-04-19 09:16:28 +08:00
William Cheng
7c734445b2
fix file parameter in header file (cpprest) ( #130 )
2018-04-18 22:29:53 +08:00
William Cheng
52af29f46d
Update CPPREST client with OAS2 ( #128 )
...
* restore cpprest from codegen 2x
* fix cpprest by modifying the template
* better naming for array of models
* updtae cpprest samples with oas2
2018-04-18 18:13:35 +08:00
William Cheng
05f5c5798b
Update html, dynamic-html petstore, fix example value for form parameters ( #122 )
...
* update dynamic-html samples with oas2
* update dynamic-html oas3 (no change)
* update html petstore (oas2)
* update html petstore with oas3
* fix example value for form parameters
* fix javadoc string
2018-04-18 17:42:38 +08:00
Jérémie Bresson
391c75b5b3
Format mustache pom template ( #125 )
2018-04-18 09:19:40 +02:00
Jérémie Bresson
ca89af8080
Switch to Java 8 ( #124 )
...
* Set java version 1.8
* Remove "joda-time" usage
* Remove 'com.google.common.base.Function' usage
* Remove "LinkedListMultimap" usage
* Add guava to the dependencies
2018-04-18 09:18:46 +02:00
William Cheng
186594115f
Update swagger-core to 2.0.1 ( #127 )
...
Update swagger core to latest stable version
2018-04-18 08:27:08 +02:00
Jérémie Bresson
48ae13df81
Array fixes ( #102 )
...
* Fix for arrays in requestBody
* Map description from RequestBody in CodegenParameter
* Fix missing import of model class with nested arrays in response
* Fix imports, consistent 'baseType'
* Add tests for enum
2018-04-18 05:20:58 +02:00
Jérémie Bresson
f5f6a7b1fa
Set swagger-parser-version to 2.0.0 ( #119 )
2018-04-18 05:18:30 +02:00
William Cheng
08038ddc30
update haskell servant samples with oas3, oas2 ( #116 )
2018-04-18 01:48:49 +08:00
William Cheng
a30e25e50d
Update ObjC petstore with oas2, fix default value for parameter ( #115 )
...
* update objc petstore with oas2, fix default value for parameter
* update objc petstore with oas3 spec
* update objc core data oas2
* update objc petstore with oas3
2018-04-18 01:47:32 +08:00
William Cheng
ddf10b98dc
Update NodeJS server petstore samples with OAS2, OAS3 ( #113 )
...
* update nodejs server oas2
* update nodejs server petstore with oas3
* update nodejs google cloud with oas2 petstore
* update nodejs server google function with oas3
2018-04-17 22:58:13 +08:00
William Cheng
dc0cbd23b6
update tizen samples with oas3 petstore ( #114 )
2018-04-17 22:53:09 +08:00
William Cheng
4845eaa81d
Update bash Petstore OAS2 ( #112 )
...
* update bash petstore oas2, fix default parameter, map file to binary
* update bash petstore with oas3 script
2018-04-17 22:39:26 +08:00
William Cheng
0fc84687ff
update rails petstore (oas3) ( #111 )
2018-04-17 21:03:00 +08:00
Jérémie Bresson
93301eaacf
Fix NullPointer with empty Composed Schema ( #107 )
2018-04-17 10:50:10 +02:00
Jeremie Bresson
cae0d83742
Merge commit 'swagger-codegen_renamed' into 'master'
2018-04-17 09:21:42 +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
Jeremie Bresson
625e13656c
Merge and rename remote-tracking branch 'swagger/master' into 'swagger-codegen_renamed'
2018-04-14 17:06:10 +02:00
Jeremie Bresson
a32e2570ec
Merge commit 'oas3_support2' into 'swagger-codegen_renamed'
...
=> include last 'swagger-codegen_master -> oas3_support2' merge into 'swagger-codegen_renamed' for future merge
2018-04-14 16:42:41 +02:00
Jeremie Bresson
db413f4d26
Rename projects from swagger-codegen master branch
2018-04-14 16:36:30 +02:00
Jérémie Bresson
006f084b53
Allow to set values with setApiPackage(..) and setModelPackage(..) ( #8013 )
...
* Add getInvokerPackage() getter
* Add test cases
* Handle values set with setModelPackage(..) and setApiPackage(..)
2018-04-13 21:11:26 +08:00
Jérémie Bresson
2034f61e53
Add HideGenerationTimestamp getter and setter in the CodegenConfig interface ( #8009 )
2018-04-12 15:38:10 +08:00
Jérémie Bresson
d0e2d7684d
Getter and Setter for hideGenerationTimestamp ( #7998 )
...
* Create unit test to control regressions
* Change HIDE_GENERATION_TIMESTAMP handling
* Add new test case: set values with the setters
* Add 'isHideGenerationTimestamp()' getter
2018-04-11 23:44:12 +08:00
HugoMario
338b9c04b8
Merge pull request #8003 from swagger-api/issue-7999
...
show number as strings
2018-04-10 19:48:40 -05:00
Hugo Mercado
b5ffeff925
added test to verify behavior.
2018-04-10 19:36:23 -05:00
Hugo Mercado
57a8f9f599
show number as strings
2018-04-10 10:21:52 -05:00
wing328
cf735f95d8
Merge branch 'master' into oas3_support2
2018-04-10 00:02:38 +08:00
Ignacio Molina Cuquerella
c91ce17aee
Feature/javaPlayWithAsynchronousControllers ( #7705 )
...
* Add property 'supportAsync' to allow the use of CompletionStage of java8
* Add support for completionStage in play-framework templates
* Add script to generate samples for play-framework async controllers
* Add generated samples for java play framework with asynchronous controllers
* Add missing templates and generate samples
* Remove useless comments from generated samples in play framework async
* Fix ControllerImp template for java play framework
* Add script for java play framework async to general script
* Regenerate java play framework server samples
* Fix missing whitespace
* Fix unnecessary blank lines at imports
* Fix tabulation issue
* Fix tabulation issue in controllers
* Remove blanks from api Imp
* Remove more empty lines
* Add blank between methods
* Remove blanks before call to service method
* Fix some tabulations in java play async templates
* Regenerate samples for java play async
2018-04-09 22:41:22 +08:00
Bjarni Þór Jónsson
009dcf0090
Mark not required swagger properties as optional typescript properties ( #7806 )
...
* Mark `not required` swagger properties as optional typescript properties
Properties that aren't required in the swagger contract should be marked as optional typescript properties, i.e. with `?` after their name when they are defined.
* Adding Petstore samples files generated with the optional property change
2018-04-09 22:12:17 +08:00
Andrew Diamond
12abfb9686
[aspnetcore] Update Dockerfile ( #7873 )
...
* Update Dockerfile
* Readd telemetry optout
* Update Petstore samples
2018-04-09 22:09:51 +08:00
William Cheng
5fb26842ce
Merge pull request #37 from wing328/fix_js_doc
...
Update JS doc to remove x-codegen reference
2018-04-09 14:30:50 +08:00
wing328
eab65306c5
update js doc to remove x-codegen reference
2018-04-09 14:27:08 +08:00
William Cheng
b0e2eeeb55
Merge pull request #36 from wing328/fix-unknown-param-name
...
Fix unknown parameter name for body parameter
2018-04-09 13:17:06 +08:00
wing328
f21d01d1c4
fix unknown parameter base name for body parameter
2018-04-09 12:58:19 +08:00
William Cheng
9c32979d95
Merge pull request #35 from wing328/ts_fix_any
...
Fix TS incorrect object declaration
2018-04-09 12:44:19 +08:00
wing328
b5f0b24bae
fix object declaration in model
2018-04-09 12:41:36 +08:00
William Cheng
7ca8edb590
Merge pull request #34 from wing328/python_flask_fix
...
Fix Python Flask parameter naming to make it consistent with Python client generator
2018-04-09 11:58:28 +08:00
wing328
9999eac528
fix python flask parameter naming
2018-04-09 11:56:19 +08:00
wing328
4109f51a22
add ruby oas3 script
2018-04-09 11:21:33 +08:00
William Cheng
3e9931c550
Merge pull request #33 from wing328/fix_ruby_output
...
Fix requiredParams, add optionalParams
2018-04-09 11:10:09 +08:00
wing328
c1e7da5ec1
update ruby readme template
2018-04-09 11:01:01 +08:00
wing328
a08164592a
fix ruby parameters in documentation, fix reuqiredParams, optionalParams
2018-04-09 10:48:45 +08:00