Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enum apear as empty class

See original GitHub issue

Hi 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:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

Simon-Campbellcommented, May 23, 2019

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)

CapitanPlanetcommented, May 16, 2019

Ok error in line 409 in file MetaBodyWriter else if (typeInfo.IsValueType && typeInfo.Namespace.StartsWith("System")) repleace with else if (typeInfo.IsValueType && typeInfo.BaseType.Namespace.StartsWith("System")) and it working fine

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found