Commit Graph

802 Commits

Author SHA1 Message Date
hideya kawahara
753499e204 generated ObjC method names to follow Apple's coding convention 2016-02-16 10:55:36 +09:00
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
5b0d8b1f13 Merge pull request #2114 from delenius/static-factories
Use static model factory methods
2016-02-15 10:13:09 +08:00
wing328
2fcbc38b67 fix objc binary mapping, add objc,swift to CI tests 2016-02-13 16:29:35 +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
wing328
874d9dc54a add uuid mapping to c# abstract base class 2016-02-12 17:15:53 +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
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
3d9a331666 automaticallay generate test cases for Perl 2016-02-11 08:24:51 +08:00
Tony Tam
cb196eb351 set example when defined 2016-02-10 15:25:51 -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
e7b18a04d9 Merge pull request #2062 from jimschubert/csharp_common
[csharp][aspnet5] AbstractCSharpCodegen base
2016-02-10 21:33:30 +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
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
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
unknown
2e1e0be2d5 Add VendorExtensions to root swagger 2016-02-09 13:45:12 +01:00
delenius
e825b953f7 Add usePromise parameter to JS client 2016-02-08 19:15:00 -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
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
5ac630f7ff Fix for issue #2036, python client wont upload list of files 2016-02-07 23:32:52 +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
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
Gael Lederrey
77f9bc3642 FIX: Fixed FLash Client library 2016-02-04 14:03:13 +01: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
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
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
Alex
d98063083b Rename folder resteasy3_0_11 to resteasy 2016-02-03 20:56:18 +06: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
743a533c65 minor fix to template location for haskell 2016-02-02 22:37:01 +08: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