wing328
af594ea652
Merge pull request #2076 from daveholladay/issue-1487
...
Fix #1487 , TypeScript-Angular output path wrong if apiPackage not the…
2016-02-15 10:43:29 +08:00
wing328
f79ec39d8d
Merge pull request #2082 from jhitchcock/feature/vendorExtensionsRoot
...
Add VendorExtensions to root swagger
2016-02-15 10:41:17 +08:00
wing328
a159998293
Merge pull request #2115 from delenius/enums
...
Use objects for enums, not constructor functions
2016-02-15 10:29:34 +08:00
wing328
5b0d8b1f13
Merge pull request #2114 from delenius/static-factories
...
Use static model factory methods
2016-02-15 10:13:09 +08:00
wing328
326ff340dc
Merge pull request #2128 from who/master
...
Adding PATCH header override the default Java client
2016-02-15 10:03:57 +08:00
evigeant
bff0e2ad19
Fixed indentation to use spaces instead of tabs
2016-02-13 11:15:04 -05:00
Jim Schubert
0f6038f3b1
[csharp] Initial settings for v3.5 client compatibility
...
Pass -DtargetFramework=v3.5 to generate .NET 3.5 client
2016-02-13 10:55:54 -05:00
wing328
2fcbc38b67
fix objc binary mapping, add objc,swift to CI tests
2016-02-13 16:29:35 +08:00
Andrew B
a303a09749
Adding PATCH header override the default Java client
2016-02-12 18:52:49 -08:00
delenius
fa2333717a
Use static model factory methods
...
The `constructFromObject` factory methods should be class methods
(or "static" methods), not instance methods.
With this commit, ApiClient no longer calls the model constructors
directly. Instead, it calls the new static factory method to get the
new instance. If there is no data on the top level, null is returned.
It is still possible for users to call the model constructors
directly, of course.
2016-02-12 07:54:04 -08:00
delenius
86154f87c3
Use objects for enums, not constructor functions
...
Fixes #2101 .
2016-02-12 07:53:51 -08:00
wing328
874d9dc54a
add uuid mapping to c# abstract base class
2016-02-12 17:15:53 +08:00
RaGe
21b1d19589
Closes #2118
...
Add basePath without url to jmeter sampler path
2016-02-12 00:07:58 -05:00
Michael Vorburger
698649f6fd
build.gradle missing 2 libs (pom.xml has)
...
jackson-jaxrs-json-provider & com.brsanthu:migbase64 are missing from the build.gradle mustache template (but the pom.xml one has them)
PS: Why are there no automated tests that detect this?
2016-02-12 02:06:22 +01:00
wing328
b54947db86
Merge pull request #2112 from hideya/fix/swift-sanitize
...
[Swift] Fix #2095 , missing sanitization for operationId
2016-02-11 21:17:01 +08:00
wing328
6dfc86f1d2
Merge pull request #2087 from delenius/optional-params
...
Fix handling of missing optional params
2016-02-11 19:16:39 +08:00
hideya kawahara
aa09678b51
add missing sanitization for operationId
2016-02-11 19:50:14 +09:00
wing328
d05596dad4
Merge pull request #2109 from wing328/perl_test_cases
...
[Perl] generate files for unit testing models and API files
2016-02-11 09:41:51 +08:00
delenius
c7766457bd
Don't set missing optional params in models
...
Fixes #2103 .
In the constructFromObject methods, we were always setting all the
parameters, including optional ones that were missing in the `data`
object. Because of the `convertToType` calls, this had the effect
of producing the *strings* `"undefined"` or `"null"` as property
values on the constructed object! This obviously leads to difficult
bugs.
This commit makes sure that we first check that the data field
exists in the data object. Note that both `null` and `undefined`
values will be skipped.
2016-02-10 17:18:31 -08:00
wing328
fdaf1e6236
Merge pull request #2078 from delenius/omit-model-methods
...
Add option to omit getters/setters on models
2016-02-11 09:10:40 +08:00
wing328
f50174e950
Merge pull request #2077 from spotby/swift-java-date
...
adding support for java dates
2016-02-11 09:03:19 +08:00
wing328
3d9a331666
automaticallay generate test cases for Perl
2016-02-11 08:24:51 +08:00
Tony Tam
54e78bd533
added builders
2016-02-10 15:40:47 -08:00
Tony Tam
ab5ca625c1
added example property
2016-02-10 15:28:00 -08:00
Tony Tam
cb196eb351
set example when defined
2016-02-10 15:25:51 -08:00
Tony Tam
3282c1f325
formatting
2016-02-10 14:42:28 -08:00
Tony Tam
06fcb95f64
removed println
2016-02-10 13:17:33 -08:00
Tony Tam
1a9cb4488a
added writeOptional
method to avoid clobbering files
2016-02-10 12:10:02 -08:00
delenius
722fbe606c
Add option to omit getters/setters on models
2016-02-10 08:35:51 -08:00
wing328
f53abf7d8e
Merge pull request #2083 from wing328/csharp_minor_fix
...
[C#] minor fix to documentation comment in Configuration class
2016-02-10 22:33:43 +08:00
wing328
e7b18a04d9
Merge pull request #2062 from jimschubert/csharp_common
...
[csharp][aspnet5] AbstractCSharpCodegen base
2016-02-10 21:33:30 +08:00
Tatsuki Sugiura
a442e1a60d
ruby: Fix boolean convertion on json to model attribute.
...
Current code will converts boolean true of json to false
because ruby's boolean is not matched with any regex.
2016-02-10 15:06:31 +09:00
wing328
3ba4cd1409
Merge pull request #2090 from jaz-ah/issue-1994
...
[Swift] fix issue 1994: make sure we don't crash if rawValue returns …
2016-02-10 13:54:57 +08:00
wing328
62e3bf2543
Merge pull request #1993 from jaz-ah/issue-1992
...
[Swift] fix issue 1992 - ensure that our variable names don't match the names…
2016-02-10 13:45:53 +08:00
Joseph Zuromski
694d735edc
[Swift] fix issue 1994: make sure we don't crash if rawValue returns nil when trying to create an enumeration - instead return nil which allows the instance variable to be nil in this case (it will still try to unwrap the optional though if you declare the enumeration as a required property)
...
note: there aren't really any tests I can add to validate this since the service is always returning valid enumerations. but I did update the sample code.
2016-02-09 12:59:14 -08:00
Jim Schubert
37d07e1012
[csharp][aspnet5] AbstractCSharpCodegen base
...
This moves a bit of logic into a base type to prevent lots of
duplicates.
I've only converted csharp and aspnet5 generators, not csharp 2.0.
This base class should provide enough flexibility to support other C#
based client and server generators.
2016-02-09 12:37:59 -05:00
David Keene
cdc9fb5f5e
fixing var name
2016-02-09 09:33:10 -08:00
wing328
a36966d961
Merge pull request #1991 from jaz-ah/issue-1989
...
[Swift] fix issue 1989: generate AnyObject type from json object type instead…
2016-02-10 00:42:39 +08:00
delenius
d56d626450
Remove wildcards from imports
2016-02-09 07:50:12 -08:00
delenius
dd29cf9d53
Use defaultValue for the usePromise CliOption
2016-02-09 07:35:45 -08:00
wing328
fed231c46d
fix documentation comment in Configuration class (C#), make
...
compile-mono permission executable
2016-02-09 22:13:47 +08:00
unknown
2e1e0be2d5
Add VendorExtensions to root swagger
2016-02-09 13:45:12 +01:00
delenius
aab96ec772
Remove unused callback param when using promises
2016-02-08 23:39:05 -08:00
delenius
e825b953f7
Add usePromise parameter to JS client
2016-02-08 19:15:00 -08:00
David Keene
16f1f74019
adding support for java dates
2016-02-08 16:47:58 -08:00
Dave Holladay
9673b878a8
Fix #1487 , TypeScript-Angular output path wrong if apiPackage not the default
2016-02-08 22:54:45 +00:00
Tony Tam
e99e322198
adde Date mapping, escape operationId
2016-02-08 13:48:46 -08:00
Tony Tam
802f9e4424
revert to Object
when model missing
2016-02-08 13:48:20 -08:00
Matan Goldman
341f862569
change the order of the elif inside to_dict for better performance (dictionary/additionalProperties is less probable)
2016-02-07 21:46:33 +02:00
Matan Goldman
2ddbfa8218
Now it should be fully compatible with python 2.7 and 3.4
2016-02-07 21:46:33 +02:00
wing328
59fde5f072
Merge pull request #2060 from wing328/scottrw93_fix_2036
...
[Python] Fix for Python client upload list of files Issue #2036
2016-02-07 23:47:36 +08:00
Scott Williams
a6fe87a52a
Use more appropriate variable name
2016-02-07 23:34:04 +08:00
Scott Williams
b43e1e2c8f
Change form_param to list of tuples from dict
2016-02-07 23:33:37 +08:00
Scott Williams
2407c494e7
Change post_param from dict to list of tuples to allow list of files
2016-02-07 23:33:27 +08:00
Scott Williams
833ce25cab
Change post_param from dict to list of tuples to allow list of files
2016-02-07 23:33:15 +08:00
Scott Williams
5ac630f7ff
Fix for issue #2036 , python client wont upload list of files
2016-02-07 23:32:52 +08:00
Matan Goldman
32d2a4d4cb
fix python 3.4 compatabilty
2016-02-07 16:23:12 +02:00
Matan Goldman
ec4c5502f1
fix identation
2016-02-07 14:21:31 +02:00
Matan Goldman
ab39eff8a1
Add additionalProperties handling in python code genrator by adding dictionary handling in model's to_dict() method
2016-02-07 13:11:28 +02:00
wing328
510a5bdb74
Merge pull request #2055 from delenius/prototype-fixed
...
Use prototypes for model methods
2016-02-07 15:33:23 +08:00
wing328
3174ab0033
Merge pull request #1997 from achew22/javascript_closure
...
Add Closure annotated Javascript Angular generator
2016-02-07 14:53:25 +08:00
Tony Tam
eafd79e8ea
updated index file
2016-02-06 07:07:53 -08:00
Tony Tam
a4d7a97504
added json provider for https://github.com/swagger-api/swagger-core/releases
2016-02-06 06:41:43 -08:00
xhh
d52ebdf684
JavaScript client: Add authentications support
...
Closes #1952
2016-02-06 16:26:15 +08:00
delenius
897c854728
Use prototypes for model methods
...
Fixes #2044 .
2016-02-05 21:27:11 -08:00
Tony Tam
eb9cff7c48
added x-swagger-router-controller, operationId for node.js versions
2016-02-05 17:12:40 -08:00
glederrey
00349406f8
FIX: Fix the flash client library.
2016-02-05 12:16:27 +01:00
wing328
81db72b62f
Revert "FIX: Fixed FLash Client library"
2016-02-05 19:08:57 +08:00
Tony Tam
9eb6993ccc
fixed build error
2016-02-04 18:06:59 -08:00
Tony Tam
5e80b61e3e
updated swagger-core versions
2016-02-04 18:02:19 -08:00
Gael Lederrey
77f9bc3642
FIX: Fixed FLash Client library
2016-02-04 14:03:13 +01:00
wing328
e926c86141
Merge pull request #2035 from wing328/csharp_fix_default_header
...
[C#] fix default header in async method and sanitize model name
2016-02-04 20:33:46 +08:00
wing328
96f9e93cff
Merge pull request #2034 from xhh/javascript-collection-format
...
[JavaScript] Support collectionFormat for parameters in JavaScript client
2016-02-04 19:02:38 +08:00
wing328
8d40b7a890
sanitize model name (C#)
2016-02-04 18:52:16 +08:00
wing328
5e1cb9349a
update exmaple, add toExampleValue
2016-02-04 18:18:45 +08:00
wing328
246369ccdd
update csharp help, fix default header
2016-02-04 18:18:44 +08:00
wing328
aac1b259a7
Merge pull request #2021 from chameleon82/feature/jaxrs-resteasy
...
Feature/jaxrs resteasy
2016-02-04 17:56:06 +08:00
xhh
47f25efb25
JavaScript client: support collectionFormat for parameters
...
Closes #1953
2016-02-04 16:30:41 +08:00
wing328
35039bf122
Merge pull request #2030 from xhh/javascript-improvements
...
[JavaScript] some improvements and enhancements to JavaScript client
2016-02-04 15:03:50 +08:00
wing328
8285dea113
Merge pull request #2008 from wing328/license_template
...
[Ruby] add API info as file header to ruby templates
2016-02-04 14:49:57 +08:00
xhh
2eb125681e
JavaScript client: handle response deserialization
...
to support array of models and Date property in model
Closes #1951
2016-02-04 12:36:44 +08:00
wing328
2de3e2e88c
Merge pull request #2024 from jimschubert/csharp_webapi_aspnet5_server
...
[aspnet] Initial implementation of ASP.NET 5 server
2016-02-04 12:08:43 +08:00
xhh
c7fa44cd0c
Fix ApiClient.isFileParam in browserify runtime
...
Closes #2028
2016-02-04 08:43:13 +08:00
Alex
d2a3492dd1
Add bin/jaxrs-resteasy-petstore-server.sh
...
Add sample into samples/petstore/jaxrs-resteasy
Update multipart/form-data ability
2016-02-04 01:01:28 +06:00
Jim Schubert
328dd93aef
[aspnet] Update readme to aspnet5, add partial class support and windows batch file
2016-02-03 13:10:52 -05:00
Alex
d98063083b
Rename folder resteasy3_0_11 to resteasy
2016-02-03 20:56:18 +06:00
wing328
cd0c8728b7
Merge pull request #2019 from ergon/feature/use-retrofit-beta3
...
Use retrofit2-beta3 and it's dendencies in retrofit2 clients
2016-02-03 17:49:12 +08:00
xhh
fa052ffa19
JavaScript client: ensure a default project/module name
...
when it is an empty string (same for "projectVersion")
Closes #2022
2016-02-03 16:01:52 +08:00
xhh
5463015725
JavaScript client: use brackets to access mobel properties
...
to support nonstandard characters in property names, e.g. "user-status".
2016-02-03 16:01:33 +08:00
Jim Schubert
455ba9d839
[aspnet] Initial implementation of ASP.NET 5 server
...
Things to work on:
Gaps:
* Missing swagger definition functionality:
- defaultResponse
- examples
- auth
- consumes
- produces
- nickname
- externalDocs
- imports
- security
- schema
* Resolve allParams/hasMore issue with headerParams
* Create functional test project stub
* Resolve all issues with value type return values
In this commit:
* Initial cross-platform ASP.NET 5 API server
* Hook up swagger gen via Swashbuckle and xml comment
* Build script (*nix) in project root
* Dockerfile for container deployment
2016-02-02 22:28:27 -05:00
Alex
af2c66cb97
Update maven and gradle project definition
2016-02-02 21:56:42 +06:00
wing328
974b8a6ee8
Merge pull request #2020 from wing328/csharp_partial_model
...
[C#] add partial to C# model
2016-02-02 23:32:11 +08:00
wing328
295cf0b2a1
add partial class to C# model
2016-02-02 22:45:57 +08:00
Silvio Heuberger
671dba4284
Use retrofit2-beta3 and it's dendencies in retrofit2 clients
...
Requires some changes to the generated client code
as some package renaming and api changes have occurred.
2016-02-02 15:43:08 +01:00
wing328
743a533c65
minor fix to template location for haskell
2016-02-02 22:37:01 +08:00
wing328
f77a8672fc
Merge pull request #2011 from nickcmaynard/defaultvalue
...
Only define @DefaultValue if it's specified in the swagger spec
2016-02-02 22:21:48 +08:00
Andrew Z Allen
42f669031d
Add tests for API
2016-02-02 00:45:40 -07:00
wing328
b2d98acb21
Merge pull request #2007 from wing328/csharp_readme
...
[C#] Add unit tests for C# APIs and models
2016-02-02 12:43:44 +08:00
Alex
40400e3657
update supporting JodaTime and Java8 DateTime
2016-02-02 00:27:08 +06:00
wing328
b275eefbbf
remove testFolder (not used)
2016-02-02 00:57:57 +08:00
Alex
62b692da1d
fix jboss context-root
2016-02-01 20:30:49 +06:00
wing328
53e74a0bd3
Merge pull request #2006 from wing328/qt5_file_support
...
[Qt5 C++] Fix file support in form parameter
2016-02-01 15:29:49 +08:00
wing328
70cce7411b
Merge pull request #2009 from algas/support-haskell
...
Code generator for haskell-servant framework
2016-02-01 13:41:51 +08:00
Masahiro Yamauchi
30e8154055
Update dependencies and repository info
2016-02-01 08:59:50 +09:00
Masahiro Yamauchi
2ad3171674
Rename
2016-02-01 08:56:15 +09:00
Nick Maynard
e29cf209c8
Only define @DefaultValue if it's specified in the swagger spec
2016-01-31 21:02:11 +00:00
Masahiro Yamauchi
cfcd6cbe48
Rename haskell to haskell-servant
2016-01-31 22:33:51 +09:00
wing328
0e0508cf5a
Merge pull request #1998 from WoodWing/master
...
Support file downloading in Java jersey2 client
2016-01-31 19:57:55 +08:00
Masahiro Yamauchi
4e3d94c005
Code generator for haskell-servant framework
2016-01-31 20:20:19 +09:00
wing328
5a53814346
add api info as file header to ruby templates
2016-01-31 17:08:47 +08:00
wing328
2471163d04
Merge pull request #1999 from wizardbyron/gradle_ide_plugins
...
[Java Client] Add Eclipse and IntelliJ IDEA support in build.gradle.mustache
2016-01-31 16:02:30 +08:00
wing328
047abc63a4
add test case for c# method
2016-01-31 12:49:32 +08:00
wing328
4ce255dc38
add unit test files for C#
2016-01-31 01:52:41 +08:00
wing328
587615b656
update c# readme with command to generate DLL
2016-01-30 23:06:45 +08:00
wing328
d5aa285926
fix file support in form parameter (qt5cpp)
2016-01-30 15:31:08 +08:00
chameleon82
46441433e8
initialize commit JaxRS-Resteasy module
2016-01-29 17:48:22 +06:00
Helge Rausch
f85f885191
Don't force explicit configuration of CA cert location
...
In order to allow openssl to figure out the location of CA certificates
on its own, don't apply the `ssl_ca_cert` configuration parameter if it
is not explicitly set.
2016-01-29 12:18:27 +01:00
wing328
59a75072fd
Merge pull request #1934 from xhh/ruby-binary
...
[Ruby] Support "binary" format for body parameter and response
2016-01-29 13:15:05 +08:00
Andrew Z Allen
b9eb26baff
Change indentation to +4 and map binary to string
2016-01-28 21:38:45 -07:00
xhh
172da5b2d8
Merge branch 'master' into ruby-binary
...
Conflicts:
samples/client/petstore/ruby/lib/petstore/api/pet_api.rb
2016-01-29 12:02:30 +08:00
xhh
ee1f401145
Merge branch 'master' into java-imports
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
2016-01-29 11:16:14 +08:00
evigeant
4335dc5d16
Merge remote-tracking branch 'upstream/master' into fix-cli-options
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JaxRSServerCodegen.java
modules/swagger-codegen/src/test/java/io/swagger/codegen/options/JaxRSServerOptionsProvider.java
2016-01-28 12:11:14 -05:00
GU Yu (Byron)
c7c983b733
Add gradle IDE support plugins
2016-01-29 00:41:46 +08:00
Maarten Groot
77d39b9614
Fix indention
2016-01-28 16:09:16 +01:00
Maarten Groot
2efa50cb7f
Support file downloading in Java jersey2 client
2016-01-28 15:59:32 +01:00
evigeant
6db358dd39
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
modules/swagger-codegen-maven-plugin/src/main/java/io/swagger/codegen/plugin/CodeGenMojo.java
2016-01-28 09:18:24 -05:00
Andrew Z Allen
b1a5080121
Add default includes for Array and Object.
2016-01-27 23:51:25 -07:00
Andrew Z Allen
b950271940
Add a Javascript (Closure) Angular generator.
2016-01-27 23:02:25 -07:00
wing328
564fa04f7c
Merge pull request #1988 from wing328/maven_build_quiet3
...
Rebase on latest master for "Using logger instead of System.out #1871 "
2016-01-28 11:52:35 +08:00
wing328
f8b82e14fe
use logger.info to display command line result
2016-01-28 11:25:11 +08:00
Joseph Zuromski
33b5286ba3
fix issue 1992 - ensure that our variable names don't match the names of the generated enums or we will get a compiler error. Also fix the escaping of reserved words to use an underscore as the comment implies instead of the word Swagger.
2016-01-27 10:14:21 -08:00
Joseph Zuromski
f435cb65ce
fix issue 1989: generate AnyObject type from json object type instead of generating strings
2016-01-27 09:39:42 -08:00
N090536
16f9c8f7dd
Changing to INFO level in order for the following switches to work as
...
expected:
-DdebugModels
-DdebugOperations
-DdebugSupportingFiles
2016-01-28 00:13:00 +08:00
JULIEN MASNADA
8c3bd60a53
Some more...
2016-01-28 00:13:00 +08:00
JULIEN MASNADA
10a9316d75
Fixed some more indentations problems
2016-01-28 00:13:00 +08:00
JULIEN MASNADA
68dc407f1d
Fiexd some indentation problem
2016-01-28 00:12:24 +08:00
JULIEN MASNADA
2a9ead870c
Use LOGGER instead of LOG
...
Use spaces instead of tabs
2016-01-28 00:12:24 +08:00
JULIEN MASNADA
2161907a8f
Using logger instead of System.out
2016-01-28 00:11:54 +08:00
wing328
bfd17e45fe
Merge pull request #1980 from wing328/ruby_add_test
...
[Ruby] add auto-generated test cases (rspec)
2016-01-27 15:28:56 +08:00
xhh
29885ab2ae
Lock version for superagent to 1.7.1
...
to avoid an unexpected behavior on request.header in 1.7.2:
Node version's request.header uses lower-case keys while browser
version's request.header keeps current case.
See also visionmedia/superagent#873
2016-01-27 12:06:22 +08:00
wing328
72d7acc06f
Merge pull request #1979 from wing328/ts_property_double_quote
...
[TypeScript] double quote model property name
2016-01-27 10:37:20 +08:00
wing328
e4a991da0c
add auto-generated test case for ruby
2016-01-26 23:15:02 +08:00
wing328
535cc1dfa7
double quote model property in ts
2016-01-26 18:08:50 +08:00
wing328
f2ab4db419
Merge pull request #1965 from wing328/ts_option_property_naming
...
[TypeScript] add an option to determine property naming convention
2016-01-26 16:54:20 +08:00
wing328
afd451ec04
Merge pull request #1928 from ergon/feature/retrofit2-rx
...
Feature/retrofit2 rx
2016-01-26 15:58:08 +08:00
wing328
fc88cb9801
Merge pull request #1967 from wing328/support-jaxrs-cxf-2
...
[Java][JAX-RS] Support JAX-RS CXF
2016-01-26 15:46:54 +08:00
wing328
2e0047cf86
rename jarxs generator
2016-01-26 15:34:43 +08:00
wing328
2046580d41
update based on discussion on
...
https://github.com/swagger-api/swagger-codegen/pull/1967/files#r50697083
2016-01-26 15:23:50 +08:00
wing328
17f8931887
add default help text for new ts option
2016-01-26 15:02:26 +08:00
wing328
d5d1c7b98f
remove unused default value
2016-01-26 15:00:41 +08:00
wing328
abe039a05f
fix test case
2016-01-26 15:00:41 +08:00
wing328
4971461a23
ts add option for model property naming
2016-01-26 15:00:41 +08:00
wing328
6c531142a9
Merge pull request #1969 from jimschubert/csharp_List_to_ICollection_Tests
...
[csharp] Model tests for List/Collection options
2016-01-26 14:45:47 +08:00
Tony Tam
decedb6c91
Merge pull request #1977 from swagger-api/issue-1976
...
added args for maven plugin
2016-01-25 22:08:22 -08:00
Tony Tam
3ddccb5e5c
fix for #1976 , added missing types
2016-01-25 21:34:28 -08:00
Tony Tam
b641d4a17a
refactored for access in maven plugin
2016-01-25 21:33:58 -08:00
wing328
ca941b1e3c
Merge pull request #1947 from xhh/javascript-default-headers
...
[JavaScript] Add default headers and some tests
2016-01-26 12:40:29 +08:00
evigeant
b61d76f291
Removed a duplicate cliOptions (it is already added by the base class)
2016-01-25 22:36:24 -05:00
evigeant
d0b99a0f83
Fixed options provider for all classes where cliOptions were added
2016-01-25 22:17:09 -05:00
evigeant
43807adf4f
Added missing cliOptions for JaxRSServerCodegen
2016-01-25 21:48:54 -05:00
evigeant
faadccf371
Added missing cliOptions for the StaticHtmlGenerator and
...
StaticDocGenerator
2016-01-25 21:39:58 -05:00
evigeant
f13b4deb2e
Added warnings when the additionalProperties are not defined in the
...
cliOptions of a language.
2016-01-25 21:22:18 -05:00
evigeant
68c6954615
Fixed indentation
2016-01-25 13:53:31 -05:00
evigeant
6b59dd0899
Allow mave-codegen-plugin to set additionalProperties even if they are
...
not declared in the cliOptions.
2016-01-25 13:51:42 -05:00
Jim Schubert
c9a0ff7482
[csharp] Model tests for List/Collection options
2016-01-25 12:45:44 -05:00
Silvio Heuberger
e34706386f
Change the artifact identifier for the retrofit2-rx sample
2016-01-25 10:29:13 +01:00
Silvio Heuberger
d60f7d1186
Change templates and test code so that the sample is 1.7 compatible
...
Alas.
2016-01-25 10:29:13 +01:00
Silvio Heuberger
7dcc1c839e
Add script for sample generation and adapt gradle and pom templates
2016-01-25 10:29:13 +01:00
Silvio Heuberger
886abda926
Add 'useRxJava' option to retrofit2 java client generator
...
This still uses retrofit 2.0.0-beta2 because the api
in beta3 has changed and the package
has been renamed to retrofit2.*
Change retrofit-rx to be a library option
2016-01-25 10:29:13 +01:00
Silvio Heuberger
06827da943
Remove retrofit remnant from javascript client code generator
...
I highly doubt this code is ever executed.
2016-01-25 10:28:08 +01:00
xhh
297597a86c
Merge branch 'master' into ruby-binary
2016-01-25 12:48:25 +08:00
xhh
8c19626095
Handle "binary" as String in Ruby client
...
as it seems weird to handle byte array (array of integer) in Ruby
2016-01-25 12:47:59 +08:00
Jim Schubert
b4eed0d147
Merge branch 'master' into csharp_List_to_ICollection
2016-01-24 23:00:56 -05:00
Jim Schubert
2e958f9223
[csharp] Collections options tests, fix model using directive
2016-01-24 22:55:37 -05:00
wing328
a0b4a07d08
Merge pull request #1960 from dilipkrish/master
...
Updated the code generation for spring mvc
2016-01-25 10:19:12 +08:00
wing328
fc83139483
resolve minor issue after rebase
2016-01-25 01:11:20 +08:00
Maelig Nantel
491f97f7ef
rename codegen names
2016-01-25 00:49:41 +08:00
Maelig Nantel
6d6f366db4
Finish
...
Tests ok. Some modifications may be done later, maybe...
2016-01-25 00:49:41 +08:00
Maelig Nantel
f3659f88a8
Work almost finish
...
Aask @wing328 if the modificatgion in the DefaultGenerator class is a
problem. If needed, find a way to do it only for the CXF Codegen.
TODO: Maybe create an abstract JAX-RS Codegen and make Jersey & CXF
extends it ? CXF should not extends Jersey since there at two different
frameworks implementing the JAX-RS specification.
Important: nothing is tested yet, only visual checks during Maven build.
2016-01-25 00:49:07 +08:00
Maelig Nantel
1dbc8a8552
Unit test correction
...
A unit test was in error due to a duplicate key in a map. Joda library
is now used by default for JAX-RS code generation.
2016-01-25 00:48:30 +08:00
Maelig Nantel
63b7e24c22
merge resolution
2016-01-25 00:48:30 +08:00
Maelig Nantel
3648a79965
Add CXF codegen
...
Also rename the existing JAX-RS codegen to JAX-RS-Jersey1 codegen, since
JAX-RS is only a specification. Jersey and CXF are both an
implementation of the JAX-RS specification.
2016-01-25 00:47:29 +08:00
Maelig Nantel
44c1e27680
Add mustache template files for Apache CXF support
...
probably not the final version of the templates
2016-01-25 00:46:02 +08:00
Jim Schubert
0bb30ddccd
Merge branch 'master' of github.com:swagger-api/swagger-codegen into csharp_List_to_ICollection
2016-01-24 09:35:46 -05:00
Jim Schubert
9dc40128ac
[csharp] Options: useCollection, returnICollection
...
This change is inline with Microsoft's recommended guidelines for
collects
(https://msdn.microsoft.com/en-us/library/dn169389(v=vs.110).aspx ).
Added generator options for csharp to:
* useCollection: Deserialize responses into and return Collection<T>
* returnICollection: For List<T> or Collection<T>, return ICollection<T>
instead of the concrete type
As a consequence of useCollection, method imputs will also change to
Collection<T>.
2016-01-24 09:13:39 -05:00
wing328
3086bb624f
Merge pull request #1941 from jhancock93/projectfile2
...
CSharp client: optionally build .csproj file
2016-01-24 12:50:40 +08:00
John Hancock
9edbfd6918
Fix csproj to use framework 4.5 instead of 4.5.2 and fix project file option description
2016-01-23 22:59:48 -05:00
Tony Tam
407c9121bf
switched from paramName
to baseName
to avoid changing format
2016-01-22 20:54:15 -08:00
Tony Tam
ee8547f3b4
Merge pull request #1900 from hiveship/fix-java-warnings
...
fix java warnings
2016-01-22 20:36:11 -08:00
Tony Tam
51c66a270e
Merge pull request #1958 from hjacobs/minor-python-flask-clean-up
...
Python Flask (Connexion) clean up
2016-01-22 14:05:45 -08:00
Tony Tam
e89bac3421
partial fix for #1956
2016-01-22 13:59:07 -08:00
hjacobs
103321d872
fix code formatting of flaskConnexion app.py and use more intuitive run(port=..)
2016-01-22 22:34:49 +01:00
hjacobs
aecc367e35
fix flaskConnexion README template to use correct URLs (contextPath is "/v2" for pet store)
2016-01-22 22:33:32 +01:00
hjacobs
9ca83c0174
tweak FlaskConnexionCodegen help string
2016-01-22 22:32:37 +01:00
Dilip Krishnan
a33bff012c
Updated the spring mvc server template to springfox 2.3.1
2016-01-22 15:31:27 -06:00
Christian Kaps
618351c11c
Namespace is missing for SplFileObject reference
2016-01-22 12:17:58 +01:00
xhh
794589d6b8
JavaScript: add default headers and some tests
2016-01-22 18:46:29 +08:00
Maelig Nantel
4c7d471203
Merge remote-tracking branch 'refs/remotes/swagger-api/master' into fix-java-warnings
...
# Conflicts:
# modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavascriptClientCodegen.java
2016-01-22 11:32:08 +01:00
wing328
a550eec389
Merge pull request #1942 from xhh/javascript-fixes
...
[JavaScript] Fix initialization issues on array and nested model fields
2016-01-22 18:15:20 +08:00
wing328
5b6d224612
Merge pull request #1747 from wing328/add_golang
...
[Go] Add Go API client generator
2016-01-22 17:42:30 +08:00