You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the same namespace.
This will produce typescript compilation errors later.
Proposal
When generating the interface names for anonymous inline compositions, inject the entity name inside.
Example:
ICompanyEmployee
IGatheringEmployee
Proposal extension: use the same approach for anonymous inline type definitions
Example:
type OpeningTime {
twentyFourBySeven : Boolean;
regularHour : {
begin : String;
end : String;
weekday : Integer;
};
}
Thanks for accepting the proposal.
I hope the proposal is correct, I'm new to CDS world... I have encountered the issue in my current project where we have a big data model and sometimes the interfaces are created with the same name.
Given the following example:
after cds2types compilation, we'll find ourselves with 2 IEmployee interfaces
in the same namespace.
This will produce typescript compilation errors later.
Proposal
When generating the interface names for anonymous inline compositions, inject the entity name inside.
Example:
ICompanyEmployee
IGatheringEmployee
Proposal extension: use the same approach for anonymous inline type definitions
Example:
will produce:
Today, the cds2types rejects with an error, and force the developer to declare the inline type declaration as a separate type.
The text was updated successfully, but these errors were encountered: