cap-js / openapi

CAP Library for OpenAPI
Apache License 2.0
0 stars 2 forks source link

Fix for OpenAPI issue : 16556 #43

Closed RoshniNaveenaS closed 2 months ago

RoshniNaveenaS commented 2 months ago

This PR, contains fix for the issue - https://github.tools.sap/cap/issues/issues/16556

Sample CDS:

namespace my.namespace;

service MyService {
    entity MyEntity {
        key id     : String;
            status : statusEnum;
    }

    type statusEnum : String enum {
        active;
        inactive;
    }
}

Now in the generated OpenAPI document the enum will be added like the below:

image