You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears to me that the client side c# code generated for enums is not correct for enums. I don´t find any enum at all. However, it looks ok for Java.
ItemTypeEnum:
type: string
enum:
- ART
- SPR
- GPR
Generated c# code:
namespace IO.Swagger.Model {
///
///
///
[DataContract]
public class ItemTypeEnum {
/// <summary>
/// Get the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString() {
var sb = new StringBuilder();
sb.Append("class ItemTypeEnum {\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Get the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
From @edarn on March 22, 2016 9:36
It appears to me that the client side c# code generated for enums is not correct for enums. I don´t find any enum at all. However, it looks ok for Java.
SalesItemBrief:
type: object
properties:
ItemId:
type: string
ItemType:
$ref: "#/definitions/ItemTypeEnum"
ItemTypeEnum:
type: string
enum:
- ART
- SPR
- GPR
Generated c# code:
namespace IO.Swagger.Model {
///
///
///
[DataContract]
public class ItemTypeEnum {
}
Copied from original issue: swagger-api/swagger-editor#848
The text was updated successfully, but these errors were encountered: