Skip to content
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

[Bug] m4 generates strange description automatically #5074

Open
msyyc opened this issue Feb 11, 2025 · 1 comment
Open

[Bug] m4 generates strange description automatically #5074

msyyc opened this issue Feb 11, 2025 · 1 comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Modeler

Comments

@msyyc
Copy link
Member

msyyc commented Feb 11, 2025

When running autorest https://raw.githubusercontent.com/Azure/azure-rest-api-specs/refs/heads/main/specification/dataprotection/resource-manager/readme.md --python --python-sdks-folder=C:\dev\azure-sdk-for-python\sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False --output-artifact=code-model-v4-no-tags, for swagger definition, I find m4 generates strange description:

Image

Note:

here is complete output of m4 code-model-v4-no-tags.zip

@msyyc msyyc added bug This issue requires a change to an existing behavior in the product in order to be resolved. Modeler labels Feb 11, 2025
@msyyc
Copy link
Member Author

msyyc commented Feb 11, 2025

The workaround is add description in swagger for this object so that we could avoid m4 adding invalid description automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Modeler
Projects
None yet
Development

No branches or pull requests

1 participant