property-name-conflict
@azure-tools/typespec-client-generator-core/property-name-conflictA property whose name matches its enclosing modelβs name causes problems with
some language emitters (notably C#), where the generated property would
collide with the type name. Rename the property, or use @clientName to
rename it for the affected language.
β Incorrect
Section titled ββ Incorrectβmodel Widget { widget: string;}β Correct (rename the property)
Section titled ββ Correct (rename the property)βmodel Widget { name: string;}β Correct (rename only for C#)
Section titled ββ Correct (rename only for C#)βmodel Widget { @clientName("widgetName", "csharp") widget: string;}