Skip to content

Commit 847a8e1

Browse files
committed
Merge pull request #2123 from wing328/csharp_add_uuid
[C#] map `uuid` to 'Guid`in C# abstract base class
2 parents 67865bf + 81593bc commit 847a8e1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AbstractCSharpCodegen.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public AbstractCSharpCodegen() {
8585
"Int32",
8686
"Int64",
8787
"Float",
88+
"Guid",
8889
"Stream", // not really a primitive, we include it to avoid model import
8990
"Object")
9091
);
@@ -110,6 +111,7 @@ public AbstractCSharpCodegen() {
110111
typeMapping.put("list", "List");
111112
typeMapping.put("map", "Dictionary");
112113
typeMapping.put("object", "Object");
114+
typeMapping.put("uuid", "Guid");
113115
}
114116

115117
public void setReturnICollection(boolean returnICollection) {
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# a script to simply wait for X seconds before contining the CI tests
3+
# the delay can help prevent 2 CI tests running at the same time as
4+
# all CI tests use the same petstore server for testing.
5+
6+
TIMEOUT=$(( ( RANDOM % 60 ) + 1 ))
7+
8+
read -p 'Press any key to continue or wait for $TIMEOUT seconds' -t $TIMEOUT

0 commit comments

Comments
 (0)