Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ function fixNamingConflicts(models: InputModelType[], constants: InputLiteralTyp
type.namespace = model.namespace;
type.access = model.access;
type.usage = model.usage;
} else if (type.kind === "enum" && type.crossLanguageDefinitionId === "") {
// Fix enum names for enums created from constants
} else if (type.kind === "enum" && (type.crossLanguageDefinitionId === "" || type.name === "")) {
// Fix enum names for enums created from constants or anonymous unions
type.name = `${model.name}${firstLetterToUpperCase(property.name)}`;
type.namespace = model.namespace;
type.access = model.access;
Expand Down
Loading