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
705ed78de1
[csharp] regenerate client
2016-05-08 08:35:28 -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
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
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
70b25a682d
fix java default and feign sample
2016-05-03 11:19:59 +08:00
wing328
0310d95800
fix csharp enum issue after rebase
2016-05-03 11:19:19 +08:00
wing328
2942ef8b73
add double enum support to C#
2016-05-03 11:16:05 +08:00
wing328
a7ca0ad11f
add enum number support to php
2016-05-03 11:16:05 +08:00
wing328
531b536ffb
add enum number support to C#
2016-05-03 11:15:40 +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
wing328
2111e9ef8d
add new sample files
2016-05-02 22:41:50 +08:00
wing328
d6158c4c55
fix uuid for java, php, ruby and csharp
2016-05-02 22:06:33 +08:00
Jim Schubert
aa778edbd8
[csharp] Regenerate sample client
...
In this commit, FormatTest.cs was modified manually. Unrelated to this
commit, a Guid with default parameter of null was not marked nullable.
2016-05-01 20:28:50 -04: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
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
wing328
f4e69597e5
fix typo
2016-04-14 16:24:06 +08:00
wing328
5c632e9862
update csharp test case to use another petstore spec
2016-04-14 16:24:06 +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
68cb030609
add new files for format test model
2016-04-11 22:11:53 +08:00
wing328
44a4219e3e
fix swift mapping with int and number
2016-04-11 19:37:56 +08:00
wing328
8e6bbf5625
update sample
2016-04-11 01:02:01 +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
251e4bb19d
better code quality
2016-04-09 19:03:31 +08:00
wing328
be13632bb4
fix csharp extra comma in constructor
2016-04-09 19:03:31 +08:00
wing328
f7affc6344
add new object to test different format
2016-04-09 19:02:31 +08:00
wing328
13712ee5bc
add new model in csharp
2016-03-31 16:53:12 +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
47bb5689d9
better hanlding of model name starting with number
2016-03-17 11:49:06 +08:00
wing328
ab41214f06
fix error with resteasy
2016-03-16 14:26:03 +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
a529d9dfe0
push new git_push and .gitinore file
2016-03-12 18:01:53 +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
wing328
7dff26912a
fix link to file, add .gitignore
2016-03-09 16:21:51 +08:00
wing328
964a44a4c5
update sample for C#
2016-03-07 17:02:36 +08:00
wing328
d2baf9cbd7
add type object support to C#
2016-03-05 16:29:25 +08:00
wing328
329530c442
better model name for c#
2016-03-04 14:46:01 +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
wing328
7e63226ed4
update wording for test file, minor tweats to petstore test
2016-03-03 20:19:37 +08:00
Tommy Alander
2d6dac16b7
add cli option to specify if to emit default values in datamember
2016-03-03 08:32:23 +01:00
Tommy Alander
23a7af4716
regen test code for petstore csharp and fix test errors
2016-03-02 19:47:45 +01:00
Tommy Alander
a2be66d492
Merge remote-tracking branch 'main/master'
2016-02-29 08:24:31 +01:00
wing328
b077ff18a2
better local variable naming for C#
2016-02-28 02:15:29 +08:00
wing328
329223f364
add better reserved keyword handling for c#
2016-02-25 15:35:05 +08:00
wing328
eed91d335d
remove exception comment on model constructor to avoid compile warning
2016-02-23 19:32:49 +08:00
wing328
82d7c2d780
add test case, update c# model constructor to remove readonly property
2016-02-23 19:16:26 +08:00
wing328
91da8fef52
fix typo
2016-02-21 23:33:53 +08:00
wing328
b3b4670055
add exception comment, minor enhancement to param description
2016-02-21 23:31:19 +08:00
wing328
d42f23f829
update test case, minor fix to required property in c#
2016-02-21 23:09:56 +08:00
wing328
890b7d17e3
add readonly property support to C#
2016-02-21 22:36:04 +08:00
wing328
95ec991c52
add exception comment
2016-02-21 18:54:13 +08:00
wing328
c1b4f8df06
Merge pull request #2132 from jimschubert/csharp_35_client
...
[csharp] Initial settings for v3.5 client compatibility
2016-02-18 12:02:00 +08:00
Jim Schubert
1d57e70e76
[csharp] Set RestSharp to 105.1.0 due to bug in newer versions
2016-02-17 13:31:50 -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
23a90b7dcc
remove objc, add pom.xml to test C# petstore client
2016-02-13 17:43:38 +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
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
fed231c46d
fix documentation comment in Configuration class (C#), make
...
compile-mono permission executable
2016-02-09 22:13:47 +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
295cf0b2a1
add partial class to C# model
2016-02-02 22:45:57 +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
17f8931887
add default help text for new ts option
2016-01-26 15:02:26 +08: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
cb8c3dfc2e
update csharp readme
2016-01-20 12:00:57 +08:00
wing328
3269a84632
fix typo Configuraiton
2016-01-19 10:42:17 +08:00
wing328
d04d554e0a
update comment in csharp test
2016-01-18 11:45:13 +08:00
wing328
417dcc8a86
update csharp configuration to avoid circular dependency, deprecate
...
ApiClient.Default
2016-01-18 11:39:32 +08:00
wing328
1bae5c44b2
fix null apiclient in .net (windows)
2016-01-17 16:04:13 +08:00
wing328
f54185c66d
add binary support for php response
2016-01-15 11:43:02 +08:00
wing328
f50463da02
fix security issue with filename for c# api client
2016-01-14 10:43:56 +08:00
wing328
e0f43c1c58
add binary support to C# client
2016-01-11 00:45:57 +08:00
wing328
6b7439b9d9
add compile-mono, fix csharp comment
2016-01-10 00:17:55 +08:00
John Hancock
5f9164049c
CSharp: add support for DateTimeOffset and sourceFolder configuration
2016-01-08 13:03:24 -05:00
wing328
468a13dc96
add cli option to optionally generate assemblyinfo.cs (default: true)
2016-01-08 17:03:57 +08:00
wing328
eeaf832cae
update csharp reserved words with local variable names in api methods
2016-01-06 23:58:58 +08:00
Justus Thorvaldsson
2c1b71429a
Fixed space between inline enumclasses and removed extra tostring
2015-12-22 13:49:04 +01:00
Justus Thorvaldsson
3b95df3ca7
Added construct that was removed when merge wrongly
2015-12-22 12:24:08 +01:00
Justus Thorvaldsson
7c9832c741
Merge remote-tracking branch 'upstream/master' https://github.com/swagger-api/swagger-codegen.git
2015-12-22 10:43:42 +01:00
Justus Thorvaldsson
7d9bddbe23
Added sample files generated
2015-12-22 08:19:44 +01:00
wing328
2cc5924498
update test case, docstring for timeout
2015-12-19 23:15:54 +08:00
wing328
0aa4d2fb8e
csharp add timeout, fix default constructor
2015-12-19 22:55:52 +08:00
hacki11
5f13484157
- add downloadImage to Petstore
...
- fixed equal instead of ':' after Content-Disposition
- added definition of file (swagger-maven-plugin generates them)
2015-12-17 00:14:21 +01:00
wing328
b01b414aae
add constructor to configuration
2015-12-14 22:26:32 +08:00
wing328
f03bc1f3bc
remove some static methods in configuration
2015-12-14 16:07:41 +08:00
Jeff Kwan
e0582ae912
Added the ability to customize the DateTimeFormat
...
Updated Configuration to have a DateTimeFormat
Added Unit Tests for Configuration.DateTimeFormat
Cleaned up namespaces in SwaggerClientTest
Added an embedded resource for testing uploads
2015-12-11 18:28:37 -05:00
Jeff Kwan
ca26608b28
Add some tests for time zones
2015-12-10 20:42:30 -05:00
Jeff Kwan
74d80289dd
Add a unit test for the datetime serialization
2015-12-10 20:28:44 -05:00
Justus Thorvaldsson
b434fb517f
Fixes enums c#
2015-12-08 09:43:28 +01:00
wing328
f9f0992cc8
add default member's value for C# models
2015-12-08 15:09:30 +08:00
wing328
ab520e41be
update return tag in documentation (C#)
2015-12-04 17:07:20 +08:00
wing328
0cd801b952
add async with http info method to C# client
2015-12-03 22:09:40 +08:00
wing328
dd28075a0e
add back deprecated method
2015-12-03 17:33:25 +08:00
wing328
506b8d2b77
add WithHttpInfo method
2015-12-03 16:34:51 +08:00
wing328
a5a4f8c7e0
add api response to C#
2015-12-03 11:10:34 +08:00
wing328
cea8ad40cd
make apiclient less mutable
2015-12-02 16:01:29 +08:00
wing328
0abe787b58
add default api client
2015-12-01 16:17:22 +08:00
wing328
c9f2380f0f
add test case for status code and response header
2015-12-01 14:08:20 +08:00
wing328
6405fba663
add test cases for configuration
2015-11-30 20:12:58 +08:00
wing328
bb086a7f91
refactor apiclient, configuration, authentication for c# client
2015-11-30 19:45:08 +08:00
wing328
dfc0813a18
add optional parameter to c# api client (enabled by default)
2015-11-28 15:40:44 +08:00
wing328
11daa87e44
add documentation to test cases in C#
2015-11-22 16:14:16 +08:00
wing328
9d76d39c00
update basic auth to allow only username/password
2015-11-22 16:09:15 +08:00
wing328
a9da01a451
better auth for C#, format change
2015-11-22 16:08:35 +08:00
wing328
a8119049ad
add test case for pet equal
2015-11-21 15:16:38 +08:00
wing328
1ce3b67aa4
add equal and gethashcode to C# model
2015-11-21 13:22:00 +08:00
Justus Thorvaldsson
f4773d3333
Added json enum to csharp with decoration
...
using newtonsoft decoration
2015-11-20 14:33:22 +01:00
wing328
ce7a707ec1
reapply the fix after rebase
2015-11-17 10:06:38 +08:00
wing328
b815163ceb
replace restsharp extension functions with functions in apiclient
2015-11-16 11:30:34 +08:00
wing328
5a8d2c834f
add oauth support to csharp
2015-11-06 13:56:40 +08:00
wing328
080e302c63
fix csharp import for file in model files
2015-11-05 22:47:53 +08:00
wing328
55d69d80bc
update c# sample code
2015-10-28 15:33:56 +08:00
wing328
7b79abef63
update c# sample
2015-10-06 11:33:00 +08:00
wing328
6ed7663466
add remarks to csharp method
2015-10-06 11:28:18 +08:00
wing328
3c78e29a12
better Accept header for C#
2015-10-05 13:19:58 +08:00
wing328
f21fa08cd6
update C# ParamterToString to support array of object, add test case
2015-09-11 22:48:38 +08:00
wing328
16afd4ee9b
update map to use String instead of string
2015-09-11 18:02:51 +08:00
wing328
1331484a0f
fix urlencode in apiclient
2015-08-29 22:39:44 +08:00
wing328
570a595ffb
fix invokerPackage with packageName in compile.mustache
2015-08-25 15:35:22 +08:00
wing328
05f00013f1
add back csharp dll, update sample
2015-07-30 10:19:46 +08:00
wing328
37dbd6e4cd
Merge pull request #992 from who/develop_2.0
...
[C#] Fixing a mono compilation error
2015-07-21 21:43:06 +08:00
Andrew B
0b7b57bf4d
[C#] Fixing a mono compilation error
2015-07-20 21:22:49 -07:00
wing328
ba72e7344a
remove nuget pacakges
2015-07-20 10:48:20 +08:00
wing328
596bde2ef6
remove leading space for path variable, update unit test
2015-07-20 10:43:08 +08:00
wing328
b8c06505f6
use fully qualified name for Task
2015-07-09 10:21:55 +08:00
wing328
e49fe7a12f
better style for model, add <value> to all properties
2015-07-07 16:25:33 +08:00
wing328
b1b0e28f59
update c# style
2015-07-06 23:06:28 +08:00
wing328
94768d44b5
better type comparision
2015-07-06 13:55:33 +08:00