microsoft / microsoft/typespec

[http-client-python] emit warning when name collision occurs

Open
#8,053 3 comments 0 reactions 1 assignee Claimed by @iscai-msft View on GitHub
emitter:client:python
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

Since our models are mappings in Python, it's common for a name collision to occur where the API uses property names like `values` or `items` and the emitter renames this with a suffix, like `values_property` etc.

Example: https://spa.apiview.dev/review/b407cf6cfc8d4a4990ec745321da2a5c?activeApiRevisionId=29375849563d4154bb96c46a0c1dad84

This is a feature request to have the Python emitter log a warning when this happens and include a clear explanation on how to fix it in the warning message.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.