Commit Graph

5836 Commits

Author SHA1 Message Date
Jim Schubert
705ed78de1 [csharp] regenerate client 2016-05-08 08:35:28 -04:00
Jim Schubert
618f4bdd39 [csharp] Constructor handling for serialization
Resolving an issue with serializing classes that contain required
properties. When the only constructor has defaulted parameters, no
parameterless constructor is generated but JSON.Net attempts to call
the missing constructor on deserialization (because of DataContract).

See: https://manski.net/2014/10/net-serializers-comparison-chart/

The fix here is to create a protected constructor, annotate it with
JsonConstructorAttribute to inform JSON.Net it is the constructor to use
during serialization, then provide settings that explicitly allow
JSON.Net to access non-public constructors during serialiazation.
2016-05-07 22:22:48 -04:00
wing328
084f15fc2e Merge pull request #2786 from mateuszmackowiak/objc/responseDeserializer
[Objc] ResponseDeserializer for separating deserialization and service logic
2016-05-07 19:50:34 +08:00
wing328
7d33e1655d Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
Conflicts:
	samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/README.mustache
2016-05-07 17:55:39 +08:00
wing328
4c0ed319d8 Merge branch 'jimschubert-csharp_default_paths' 2016-05-07 17:54:38 +08:00
wing328
77e56084ac regenerate c# petstore sample 2016-05-07 17:49:54 +08:00
wing328
2ab315fa6f Merge branch 'csharp_default_paths' of https://github.com/jimschubert/swagger-codegen into jimschubert-csharp_default_paths
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java
	samples/client/petstore/csharp/SwaggerClient/README.md
	samples/client/petstore/csharp/SwaggerClient/docs/FormatTest.md
	samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/FormatTest.cs
	samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Model/InlineResponse200.cs
	samples/client/petstore/csharp/SwaggerClientTest/SwaggerClientTest.csproj
	samples/client/petstore/csharp/SwaggerClientTest/SwaggerClientTest.userprefs
	samples/client/petstore/csharp/SwaggerClientTest/obj/Debug/SwaggerClientTest.csproj.FilesWrittenAbsolute.txt
2016-05-07 17:30:40 +08:00
wing328
bff6c8bab4 add bitly 2016-05-07 08:47:30 +08:00
wing328
34ec63e908 Merge pull request #2787 from xhh/js-enum
[JavaScript] Fix the exporting of outer enum model in JS client
2016-05-06 18:56:38 +08:00
xhh
020a9fcdc0 Fix enum model docs for JS and Java clients 2016-05-06 18:41:15 +08:00
Mateusz Mackowiak
fa68f84ec6 - Remove petsotre demo leftovers
- Moved description method to basic class
2016-05-06 12:35:02 +02:00
xhh
5acef6d634 Update petstore sample for JS-promise client 2016-05-06 18:02:32 +08:00
xhh
3dbab1b893 JavaScript client: fix exporting of outer enum model 2016-05-06 17:45:03 +08:00
Mateusz Mackowiak
385bf6d9ea Additional UnknownResponseObjectErrorCode if response object expected type is an unknown type 2016-05-06 11:41:30 +02:00
wing328
db65a1526f Merge pull request #2761 from kolyjjj/upgradeswaggertools
[koly] update swagger tools to 0.10.1
2016-05-06 17:18:32 +08:00
wing328
ce4a976916 Merge pull request #2775 from guohuang/tests
fixed array return type return as pointer issue
2016-05-06 17:07:02 +08:00
Mateusz Mackowiak
75cc10fdfa Fix typo 2016-05-06 10:51:59 +02:00
wing328
d3e77a4104 Merge pull request #2784 from catinred2/htmlDocs_response
Html docs response
2016-05-06 16:46:44 +08:00
Mateusz Mackowiak
65d85b7760 ResponseDeserializer for separating deserialization and service logic 2016-05-06 10:46:03 +02:00
xming
70d6e64a8d add link to param type 2016-05-06 15:31:09 +08:00
wing328
1dd8faf8b7 Merge pull request #2783 from GriffinSchneider/patch-1
Replace 'BEARER' with 'Bearer' everywhere for RFC6750 compliance.
2016-05-06 15:01:22 +08:00
xming
ea14b3b559 Merge branch 'master' into htmlDocs_response 2016-05-06 13:57:27 +08:00
wing328
dc50709f56 Merge branch 'arnested-php-fix-array-handling' 2016-05-06 10:47:00 +08:00
wing328
ac2cb647b5 Merge branch 'php-fix-array-handling' of https://github.com/arnested/swagger-codegen into arnested-php-fix-array-handling
Conflicts:
	modules/swagger-codegen/src/main/resources/php/model.mustache
	samples/client/petstore/php/SwaggerClient-php/README.md
	samples/client/petstore/php/SwaggerClient-php/docs/FormatTest.md
	samples/client/petstore/php/SwaggerClient-php/lib/Api/FakeApi.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Animal.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/ApiResponse.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Cat.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Category.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Dog.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/FormatTest.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Model200Response.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelReturn.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Name.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Order.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Pet.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/Tag.php
	samples/client/petstore/php/SwaggerClient-php/lib/Model/User.php
2016-05-06 10:46:36 +08:00
xming
0f1842bb06 add datatype link under responses 2016-05-06 10:35:45 +08:00
Griffin Schneider
e5ab34b658 Replace 'BEARER' with 'Bearer' everywhere.
RFC6750 indicates that the correct header format is 'Bearer <token>',
not 'BEARER <token>'.
2016-05-05 16:14:45 -04:00
Guo Huang
ebdf12bcd4 fixed code gen using {{#isListContainer}}*{{/isListContainer}} field 2016-05-05 11:41:58 -07:00
wing328
b92e240ac2 Merge branch 'leonyu-typescript-fetch' 2016-05-05 17:13:10 +08:00
wing328
e04c4ec640 add typescript-fetch client generator 2016-05-05 17:12:28 +08:00
wing328
e0ec38df72 Merge branch 'typescript-fetch' of https://github.com/leonyu/swagger-codegen into leonyu-typescript-fetch 2016-05-05 16:43:30 +08:00
wing328
e1d4a6205c Merge branch 'diyfr-SpringBootServer' 2016-05-05 15:31:57 +08:00
wing328
3b8a66bb8c rename spsringboot sh, change permission, add ModelApiResponse.java 2016-05-05 15:31:17 +08:00
wing328
3dccc7d2a1 Merge branch 'SpringBootServer' of https://github.com/diyfr/swagger-codegen into diyfr-SpringBootServer 2016-05-05 15:28:10 +08:00
Jim Schubert
9b1d43c6f5 [csharp] default optionalProjectFileFlag to true
Possible breaking change.

optionalProjectFileFlag handles the generation of csproj and sln
files. Not modifying the plurality of the option to reduce the
impact of the breaking change for existing settings:

optionalProjectFileFlag=true
    => generates additional .sln file
optionalProjectFileFlag=false
    => no change
unspecified
    => additional files (csproj, sln) may overwrite existing files
2016-05-04 21:44:52 -04:00
Leon Yu
bbeb1a3f6f add dev-dependencies 2016-05-04 14:36:04 -04:00
Guo Huang
41b7649e62 fixed array return type return as pointer issue 2016-05-04 10:39:30 -07:00
diyfr
8209653fb0 Add SpringBoot server generator 2016-05-04 16:38:36 +02:00
wing328
ec5d300bab added Pepipost 2016-05-04 18:26:13 +08:00
kolyjjj
98a2a22abf [koly] generate nodejs codes 2016-05-04 17:56:02 +08:00
wing328
33291f5780 Merge branch 'guohuang-tests' 2016-05-04 10:21:47 +08:00
wing328
27b8d1af81 Merge branch 'tests' of https://github.com/guohuang/swagger-codegen into guohuang-tests
Conflicts:
	samples/client/petstore/go/pet_api_test.go
2016-05-04 10:21:38 +08:00
wing328
4117608654 Merge pull request #2749 from guohuang/pointer
changed go client to return object pointer
2016-05-04 10:17:07 +08:00
wing328
dc262a3567 Merge pull request #2765 from Vrolijkx/master
Reverting remove of client.ts in typescript-node
2016-05-04 09:57:21 +08:00
wing328
96f90106ec Merge branch 'wing328-bherila-typescript-es6-promises' 2016-05-04 09:54:56 +08:00
wing328
8181720397 Merge branch 'bherila-typescript-es6-promises' of https://github.com/wing328/swagger-codegen into wing328-bherila-typescript-es6-promises
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractTypeScriptClientCodegen.java
2016-05-04 09:54:42 +08:00
Guo Huang
60ee308da5 added assert to check response status match the query 2016-05-03 11:55:51 -07:00
Kristof Vrolijkx
a98c58a76f Merge branch 'master' of https://github.com/swagger-api/swagger-codegen 2016-05-03 20:55:28 +02:00
Kristof Vrolijkx
9fb85ae8fe removing comment 2016-05-03 20:36:24 +02:00
Guo Huang
035ee18ba4 fixed testing issue 2016-05-03 10:27:27 -07:00
Guo Huang
a5b08a8ce7 fixed merge conflict 2016-05-03 10:16:47 -07:00