Is your feature request related to a problem? Please describe.
Currently, when the parser finds two properties with the same name, it appends the number at the end to prevent duplication.
class Result(BaseModel):
...
class UserListResponse(BaseModel):
result: list[Result]
class Result2(BaseModel):
...
class UserDetailResponse(BaseModel):
result: Result2
Describe the solution you'd like
I would like to have the option to use the parent's model name as a prefix for the property name.
class UserListResponseResult(BaseModel):
...
class UserListResponse(BaseModel):
result: list[UserListResponseResult]
class UserDetailResponseResult(BaseModel):
...
class UserDetailResponse(BaseModel):
result: UserDetailResponseResult
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too