-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MPG][Diff] SDK from Typespec still generate model when model defines no property #2586
Comments
Python is in an interesting situation, where since our models are also a dictionary type, it wouldn't be breaking for us if we took empty models and generated them as dictionaries, then when later properties were added we would generate a model. I don't think tcgc should return empty models as dictionaries, but I could be open to python generating these empty models as dictionaries. However, I still think it's better to not do any magic here: is it breaking mgmt if we just return empty models? I don't believe it is bc our models are dictionaries |
I don't think it is a problem for Python, either. Since we only release SDK from typespec for green field service, it is not breaking for python. I agree that we just keep current logic. |
opened discussion for TCGC: Azure/typespec-azure#846 |
please help to confirm the python behavior @msyyc @iscai-msft @lmazuel @johanste
|
Compared with SDK between typespec and swagger, typespec definition has a model which has no property:
typespec sdk
swagger sdk
The text was updated successfully, but these errors were encountered: