wing328
3e17869804
Merge pull request #2857 from jimschubert/cs/client_api_base
...
[csharp] Add common IApiAccessor interface
2016-05-16 14:29:26 +08:00
wing328
303aec7647
Merge branch 'cs/req_properties_2584' of https://github.com/jimschubert/swagger-codegen into jimschubert-cs/req_properties_2584
...
Conflicts:
samples/client/petstore/csharp/SwaggerClient/IO.Swagger.sln
samples/client/petstore/csharp/SwaggerClient/README.md
samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger.Test/IO.Swagger.Test.csproj
samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/IO.Swagger.csproj
2016-05-13 21:49:16 +08:00
Jim Schubert
993a21ed5f
[csharp] Add interface for API config aspects
...
This allows developers to gain access to each API's
Configuration and GetBasePath without need for reflection.
2016-05-12 22:06:30 -04:00
Jim Schubert
726228a27d
[csharp] Make APIs partial classes
2016-05-12 22:02:11 -04:00
wing328
4f28ed3cd3
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
2016-05-10 20:02:33 +08:00
wing328
55746f01b1
Merge branch 'csharp-bug' of https://github.com/guohuang/swagger-codegen into guohuang-csharp-bug
2016-05-10 20:01:44 +08:00
wing328
1b36083afd
fix #2795
2016-05-10 17:40:21 +08: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
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
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
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
82770e9566
Issue #2756 : add null checking to avoid null exception
2016-05-04 13:22:46 -07:00
wing328
0310d95800
fix csharp enum issue after rebase
2016-05-03 11:19:19 +08:00
wing328
be83c0cc3c
add new enum file for csharp and php
2016-05-03 11:16:05 +08:00
wing328
00e15b76ec
clean up post process model in csharp, add default value for enum
2016-05-03 11:14:45 +08:00
wing328
45f3cfd5cf
better enum support for csharp
2016-05-03 11:14:45 +08:00
Jim Schubert
7b578a4c4e
Update C# client structure using common standards
...
Aligns C# project outputs more with community accepted standards and
leverges Nuget for package management.
This also moves the generated C# sample code out of the test project's
Lib folder. The output structure here was causing some issues with
maintainability (e.g. had to update test project with generated code).
(see: https://gist.github.com/davidfowl/ed7564297c61fe9ab814 )
Output for a project, IO.Swagger will now look like:
.
├── IO.Swagger.sln
├── README.md
├── bin
├── build.bat
├── build.sh
├── docs
├── packages
└── src
├── IO.Swagger
│ └── packages.config
└── IO.Swagger.Test
└── packages.config
This is a change from the Java-like src/main/csharp/IO/Swagger/etc
structure and will be a breaking change for some.
2016-05-01 20:03:45 -04:00
wing328
c4b32f24cf
remove trailing space
2016-04-21 17:23:36 +08:00
wing328
6075f078b6
minor fix to constructor
2016-04-21 17:18:44 +08:00
wing328
cbccee9c39
update csharp doc with minor enhancements and bug fixes
2016-04-18 00:19:16 +08:00
Kevin Glinski
96bf984fcf
fixing module names
2016-04-14 13:23:33 -04:00
Kevin Glinski
f02ee42594
merge from upstream
2016-04-14 08:35:05 -04:00
Kevin Glinski
2beeabb33a
fixing typeos
2016-04-14 08:22:56 -04:00
Kevin Glinski
a7a39ab08b
adding readme text and nav links
2016-04-14 08:18:55 -04:00
wing328
31120590f5
regenerate csharp sample
2016-04-14 16:30:22 +08:00
Guo Huang
35fbb3e53a
updated csharp project to use System.IO.Stream instead of Stream to avoid namespace issue
2016-04-13 22:44:00 -07:00
Kevin Glinski
67fe023efb
fixing typeo
2016-04-13 21:52:59 -04:00
Kevin Glinski
ffff0ab535
adding csharp documentation
2016-04-13 21:50:35 -04:00
wing328
b34c9dd7ee
fix indention in c#
2016-04-12 12:42:09 +08:00
wing328
c8f4edff68
Merge pull request #2554 from wing328/add_format_test
...
Add tests for different type and format for model's properties
2016-04-11 23:05:59 +08:00
wing328
44a4219e3e
fix swift mapping with int and number
2016-04-11 19:37:56 +08:00
Jerome Dreyer
e2941582fa
fixed tab-spacing
2016-04-11 09:49:03 +02:00
Jerome Dreyer
a8bbb37866
fix sync call for uwp
2016-04-11 08:24:18 +02:00
wing328
e952e4435e
fix system.web import
2016-04-11 00:59:48 +08:00
wing328
a6a88decfd
add a switch for excluding system.web for ump support
2016-04-11 00:59:48 +08:00
wing328
559e11e6d2
add uwp support
2016-04-11 00:59:47 +08:00
wing328
1cd3255be6
remove trailing space for csharp api client
2016-04-10 22:04:52 +08:00
wing328
be13632bb4
fix csharp extra comma in constructor
2016-04-09 19:03:31 +08:00
wing328
f521d6e166
minor fix to docstring in csharp
2016-03-31 16:52:00 +08:00
wing328
05a8c47a36
update docstring to include default value
2016-03-17 17:43:21 +08:00
wing328
6d2649de00
fix http user agent in C#
2016-03-15 11:41:48 +08:00
wing328
84564ae231
Merge pull request #2371 from wing328/csharp_user_agent
...
[C#] add httpUserAgent option, add configurable user-agent support to C#
2016-03-14 11:03:57 +08:00
wing328
cdecb5133f
add httpUserAgent option, add customized user-agent support to C#
2016-03-13 17:28:43 +08:00
wing328
0e45f868a0
fix base64encode in csharp, add test case
2016-03-13 00:05:32 +08:00
wing328
637bdd2f50
add git_push and gitignore to most client generators
2016-03-12 17:35:25 +08:00
wing328
ac15938080
escape html spec char in model summary and value, add model to test
...
model and property name
2016-03-10 14:35:16 +08:00
Peter Kern
a3d0fd61f8
compile.bat needs to use backslash to work inside a normal windows cmd. bin directory should be created if it does not exists.
2016-03-09 21:47:20 +01:00
wing328
485d269830
use model instead of object, replace cp with copy (for winxp)
2016-03-07 16:49:29 +08:00
wing328
d2baf9cbd7
add type object support to C#
2016-03-05 16:29:25 +08:00
wing328
1e4fb0ec96
Merge pull request #2301 from wing328/update_test_file
...
Update wording for test files
2016-03-04 10:23:13 +08:00