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
This is currently unsupported. Xsd.exe treats lists of enums as a special case where it generates an enum with FlagsAtribute and corresponding enum members that are powers of 2. This probably covers the typical use case but doesn't allow for list items to occur more than once.
It would be nice if XmlSchemaClassGenerator had this capability, too (perhaps behind a flag). Would you be interested in providing a PR?
Can you label this as enhancement? As I'm pretty busy right now and the workaround is pretty easy, this has no priority. I might take a look at it again in the future (maybe when more people show interest)
Thanks for a great tool. I'm trying to migrate some code generation from
xsd.exe
and found one place where your generator failsFollowing schema:
XSD correctly generates an enum FontAttributes and use it for (de)serialization of
fontAttributes
attribute.But XmlSchemaClassGenerator generates the field as
string[] FontAttributes
.Is my schema wrong or is this problem for XmlSchemaClassGenerator ?
Thanks!
The text was updated successfully, but these errors were encountered: