Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed enum values are generated as string, code does not compile #68

Closed
jods4 opened this issue Jul 5, 2024 · 0 comments · Fixed by #69
Closed

Fixed enum values are generated as string, code does not compile #68

jods4 opened this issue Jul 5, 2024 · 0 comments · Fixed by #69

Comments

@jods4
Copy link
Contributor

jods4 commented Jul 5, 2024

AIXM schema in repository is actually an example of this.

Current behavior:

This interpolation attribute is typed as an enum, and it has a fixed value of linear:

<attribute name="interpolation" type="gml:CurveInterpolationType" fixed="linear"/>

In generated C# code, there's an issue because the fixed value is generated as a string, which creates problem in setter code:
image
image

The fix would be to generate the static fixed value field with enum type instead of string. I'll try to create a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant