Azure / typespec-azure

About TypeSpec Azure Libraries
https://azure.github.io/typespec-azure/
MIT License
9 stars 29 forks source link

[tcgc] add `UsageFlags.Json` #1129

Closed iscai-msft closed 2 weeks ago

iscai-msft commented 2 weeks ago

fixes #896

azure-sdk commented 2 weeks ago

All changed packages have been documented.

Show changes ### `@azure-tools/typespec-client-generator-core` - _feature_ [✏️](https://github.com/Azure/typespec-azure/edit/json_usage/.chronus/changes/json_usage-2024-6-8-15-14-50.md?pr=/Azure/typespec-azure/pull/1129) > add `UsageFlags.Json`. Will be set if a model is used with a JSON content type
azure-sdk commented 2 weeks ago

You can try these changes at https://cadlplayground.z22.web.core.windows.net/typespec-azure/prs/1129/

Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/typespec-azure/prs/1129/

haolingdong-msft commented 2 weeks ago

The change looks good to me. Double confirm: the flag will be added to all the models used by operation whose content type is application/json, right?