Skip to content

Commit 99187a7

Browse files
committed
Remove max split for get_reference_simple_name to avoid potential breaking change
1 parent 953c935 commit 99187a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_python_client/parser/properties/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def get_reference_simple_name(ref_path: str) -> str:
5050
"""
5151
Takes a path like `/components/schemas/NameOfThing` and returns a string like `NameOfThing`.
5252
"""
53-
return ref_path.split("/", 3)[-1]
53+
return ref_path.split("/")[-1]
5454

5555

5656
@define

0 commit comments

Comments
 (0)