Skip to content

Instantly share code, notes, and snippets.

@jimschubert
Created August 5, 2018 02:32
Show Gist options
  • Save jimschubert/f521cbaf1f3252cf65eb37b033fbdc4b to your computer and use it in GitHub Desktop.
Save jimschubert/f521cbaf1f3252cf65eb37b033fbdc4b to your computer and use it in GitHub Desktop.
Running ./bin/csharp-petstore.sh on master fails to create enums as expected.
diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/EnumTest.cs
index 663d01a2b..ea28983f7 100644
--- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/EnumTest.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/EnumTest.cs
@@ -40,20 +40,20 @@ namespace Org.OpenAPITools.Model
/// <summary>
/// Enum UPPER for value: UPPER
/// </summary>
- [EnumMember(Value = "UPPER")]
- UPPER = 1,
+
+ UPPER = UPPER,
/// <summary>
/// Enum Lower for value: lower
/// </summary>
- [EnumMember(Value = "lower")]
- Lower = 2,
+
+ Lower = lower,
/// <summary>
/// Enum Empty for value:
/// </summary>
- [EnumMember(Value = "")]
- Empty = 3
+
+ Empty =
}
/// <summary>
@@ -71,20 +71,20 @@ namespace Org.OpenAPITools.Model
/// <summary>
/// Enum UPPER for value: UPPER
/// </summary>
- [EnumMember(Value = "UPPER")]
- UPPER = 1,
+
+ UPPER = UPPER,
/// <summary>
/// Enum Lower for value: lower
/// </summary>
- [EnumMember(Value = "lower")]
- Lower = 2,
+
+ Lower = lower,
/// <summary>
/// Enum Empty for value:
/// </summary>
- [EnumMember(Value = "")]
- Empty = 3
+
+ Empty =
}
/// <summary>
@@ -126,14 +126,14 @@ namespace Org.OpenAPITools.Model
/// <summary>
/// Enum NUMBER_1_DOT_1 for value: 1.1
/// </summary>
- [EnumMember(Value = "1.1")]
- NUMBER_1_DOT_1 = 1,
+
+ NUMBER_1_DOT_1 = 1.1,
/// <summary>
/// Enum NUMBER_MINUS_1_DOT_2 for value: -1.2
/// </summary>
- [EnumMember(Value = "-1.2")]
- NUMBER_MINUS_1_DOT_2 = 2
+
+ NUMBER_MINUS_1_DOT_2 = -1.2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment