Conversation
Sefriol
commented
Oct 5, 2023
- Comments were overwriting EnumValues. I do not think this should be the case. Atleast it is not documented DTDL language specification
- Current generator assumes that every model starts with uppercase letters. This is not always the case. This change ensures that classes/modules are written and then referenced with uppercase letters.
|
@ms-mikeb: I can't recall the (historic?) reason for the |
|
@jarz Any updates? I can iterate this if need be. |
Sorry for the late reply on this. We have an old system we needed to be able to map the value we're storing in the Comment field to an attribute that's added to the model in C#. I recognize this behavior wasn't documented well, nor is it intuitive. I'll need to see what alternatives we can look at for managing this so we can retire this behavior. |
5930251 to
69b6508
Compare
|
Changed the logic so that Comment takes precedence over enumvalue. There were some other issues with enum property names that I wanted to fix as well, so I kept those. |