galasa-dev / projectmanagement

Project Management repo for Issues and ZenHub
7 stars 3 forks source link

opeanpi2beans enum values in capitals #1890

Closed Wyvinar closed 4 days ago

Wyvinar commented 3 weeks ago

Story

As a Galasa developer, I want the enums produced by openapi2beans to conform to standard coding practice.

Background

Currently the enums that the generator produces have lower case values when they should be in a constant name format with their output value beside them. What we have currently:

public enum MyEnum {
    enumValue1,
    enumValue2;
}

What we should have:

public enum MyEnum {
    ENUM_VALUE_1 ("enumValue1"),
    ENUM_VALUE_2 ("enumValue2");
}

Tasks