NENA911 / EIDO-JSON

Repository for NENA-STA 021: EIDO (Emergency Incident Data Object)
16 stars 11 forks source link

Normalize enum values #2

Closed ghost closed 3 years ago

ghost commented 3 years ago

When using a tool like https://openapi-generator.tech/docs/generators/csharp-netcore to generate code from the schema files, some enum values are generated with the same id.

For example :

Both result in :

    /// <summary>
    /// Enum _80 for value: 8.0
    /// </summary>
    [EnumMember(Value = "8.0")]
    _80 = 5,

...

    /// <summary>
    /// Enum _80 for value: 80
    /// </summary>
    [EnumMember(Value = "80")]
    _80 = 27,

This commit corrects values so they are in the same format and eliminate duplicate ids.