You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently TCGC defaults the .access property on SdkModelType and SdkEnumTypes to .undefined unless the @access decorator is explicitly applied. This was so emitter authors could determine whether the @access was purposefully set, so if they wanted to trim these models and make them private, they could do so.
However, having an undefined default isn't the greatest, so we want to default the value "public" instead of @access is not explicitly set. If an emitter author still cares about whether the @access decorator was explicitly provided, they could call getAccessOverride from the tcgc library
Check that this issue is about the Azure libraries for typespec. For feature request in the typespec language or core libraries file it in the TypeSpec repo
Clear and concise description of the problem
Currently TCGC defaults the
.access
property onSdkModelType
andSdkEnumType
s to.undefined
unless the@access
decorator is explicitly applied. This was so emitter authors could determine whether the@access
was purposefully set, so if they wanted to trim these models and make them private, they could do so.However, having an
undefined
default isn't the greatest, so we want to default the value"public"
instead of@access
is not explicitly set. If an emitter author still cares about whether the@access
decorator was explicitly provided, they could callgetAccessOverride
from the tcgc libraryChecklist
The text was updated successfully, but these errors were encountered: