Skip to content

Commit 3320062

Browse files
committed
Add changeset file
1 parent 0b93bbd commit 3320062

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
default: minor
3+
---
4+
5+
# Enumerate duplicate model names
6+
7+
#1212 by @tjb346
8+
9+
This addresses: https://github.com/openapi-generators/openapi-python-client/issues/652
10+
11+
Even with `use_path_prefixes_for_title_model_names` set to `true`, duplicate model class names can occur. By default, when duplicates are encountered they will be skipped. This can cause error when they are referenced later.
12+
13+
This enables setting `enumerate_duplicate_model_names` to `true` (`false` by default) in the config file which will result in a number being added to duplicate names starting with 1. For instance, if there are multiple occurrences in the schema of `MyModelName`, the initial occurrence will remain `MyModelName` and subsequent occurrences will be named `MyModelName1`, `MyModelName2` and so on.

0 commit comments

Comments
 (0)