We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
get_reference_simple_name
1 parent 953c935 commit 99187a7Copy full SHA for 99187a7
openapi_python_client/parser/properties/schemas.py
@@ -50,7 +50,7 @@ def get_reference_simple_name(ref_path: str) -> str:
50
"""
51
Takes a path like `/components/schemas/NameOfThing` and returns a string like `NameOfThing`.
52
53
- return ref_path.split("/", 3)[-1]
+ return ref_path.split("/")[-1]
54
55
56
@define
0 commit comments