Enum apear as empty class
See original GitHub issueHi
I cannot host enum field in my ervice.
In model:
public Currency Currency { get; set; }
In declaration:
public enum Currency { PLN = 0 }
Result wsdl: <xs:complexType name=“Amount”> < xs:sequence> < xs:element minOccurs=“0” maxOccurs=“1” name=“Currency” type=“tns:Currency”/> < /xs:sequence> </xs:complexType> <xs:element name=“Amount” nillable=“true” type=“tns:Amount”/> <xs:complexType name=“Currency”> < xs:sequence/> < /xs:complexType> <xs:element name=“Currency” nillable=“true” type=“tns:Currency”/>
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Setting Empty String for Enum Value in Java
I have an object in Java which I am trying to set from an enum class with following structure. ... And when I...
Read more >[BUG][R] Generating R enums results in empty class with ...
I have noticed that R enums are not generated properly, that is, instead of a proper enum structure, an empty class is generated....
Read more >Enumeration declaration
If the enumerator-list is empty, the underlying type is as if the enumeration had a single enumerator with value 0. If no integral...
Read more >Empty string as an enum entry? : r/graphql
Is it possible to have an empty string as an accepted value for an enum list? I have an enum with a list...
Read more >MySQL 8.0 Reference Manual :: 11.3.5 The ENUM Type
An ENUM is a string object with a value chosen from a list of permitted values that are enumerated explicitly in the column...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This code change definitely helps. I am trying to understand why the original check was added as sometimes it Namespace can be null if classes are in the global namespace (causing .StartsWith to null ref)
Ok error in line 409 in file MetaBodyWriter
else if (typeInfo.IsValueType && typeInfo.Namespace.StartsWith("System"))
repleace withelse if (typeInfo.IsValueType && typeInfo.BaseType.Namespace.StartsWith("System"))
and it working fine