Commit Graph

226 Commits

Author SHA1 Message Date
wing328
3d717bd874 add symbolic enum support to csharp 2016-08-12 16:27:47 +08:00
wing328
3d7ff26c67 [C#] Add C# Petstore test to AppVeyor (#3489)
* update appveyor.yml to test c# petstore client

* update csproj file

* add docker version test

* add docker version

* add docker

* add cpuid.ps1

* comment out cpuid

* use start process

* remove mvn test

* remove comments related to docker

* fix appveyor to run local petstore, shippable caching turned on

* add comments to ci config

* remove cpuid.ps1

* update C# petstore sample
2016-07-31 22:37:06 +08:00
wing328
9489f7d3eb clear import mapping for gnereators that do not use it 2016-07-26 14:40:29 +08:00
wing328
30c2503f9f [C#][NancyFX] Better "Add" for Dictionary and using {{packageName}} for NancyFX (#3449)
* use square bucket for C# dictionary

* use packageName for nancyfx generator, update info to debug for log

* use packageName for nancyfx generator, update info to debug for log
2016-07-26 14:10:48 +08:00
Jim Schubert
52cfd0f86f [C#] RootNamespace/AssemblyName use packageName
Uses packageName instead of packageTitle for RootNamespace and
AssemblyName in the C# generate client project. packageTitle is intended
to add additional information to AssemblyInfo.cs, and changing
packageTitle to non-FQN text breaks adding new files to the project.

packageTitle, per CodegenConstants description:

"Specifies an AssemblyTitle for the .NET Framework global assembly
attributes stored in the AssemblyInfo file."
2016-07-24 11:21:06 -04:00
wing328
13ec3dc6bb [C#] fix remaining reference to NUnit 3.2.1 (#3433)
* fix remaining reference to 3.2.1 of nunit

* fix nunit runner path
2016-07-21 21:23:40 +08:00
wing328
f74bf84017 download C# nunit to 2.x (#3432) 2016-07-21 18:17:43 +08:00
wing328
8da6e0a533 fix csharp enum naming 2016-07-13 19:11:22 +08:00
wing328
9bfb52dbc1 fix csharp code sample 2016-07-13 16:22:58 +08:00
wing328
1c5210581e fix model name "client" issue 2016-07-10 17:42:18 +08:00
wing328
0119a66479 fix https://github.com/swagger-api/swagger-codegen/pull/3313/files#r70178399 2016-07-10 16:55:36 +08:00
lunat
5648c5af88 CSharp Documentation with working anchor link within document 2016-07-06 16:26:59 +02:00
wing328
c15992b420 add array and map of enum support for C# 2016-06-23 12:14:32 +08:00
wing328
3e30291865 fix #3184 2016-06-21 16:16:05 +08:00
wing328
16d89a47b7 add travis file for C# client 2016-06-12 16:45:49 +08:00
wing328
bca3d24d20 fix test cases, fix warning in exceptionfactory, update
.swagger-codegen-ignore for c# to keep logo file (for upload test)
2016-06-12 12:41:35 +08:00
wing328
6ddf34ce8a update nunit to 3.2.1 2016-06-12 01:56:31 +08:00
wing328
bc04ebed94 add mono script to nunit test csharp client 2016-06-11 23:44:48 +08:00
Jim Schubert
c209cb25ef [csharp] Regenerate petstore client 2016-06-10 08:10:50 -04:00
wing328
6d1fd2c78d fix spec for map and array 2016-05-29 17:28:33 +08:00
wing328
8096308657 add apache v2 license to csharp api client 2016-05-25 14:41:17 +08:00
wing328
69ec14d628 fix csharp constructor for model with read-only 1st property 2016-05-21 22:42:37 +08:00
wing328
4be97eb35c remove old test cases (c# petstore) 2016-05-16 16:36:38 +08:00
wing328
373e5fbde2 fix indention in tostring and constructor, add existing test cases to
auto-generated test files
2016-05-16 16:35:25 +08:00
wing328
3ec8a96a94 update csharp petstore sample 2016-05-13 22:17:16 +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
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