Our strategy today is we honor Read by making a property not have a setter and the rest we do nothing special with.
Since visibility takes an unbounded string we might come across things that are completely independent of clients like gateway or database type stuff.
In this case we should omit those properties from the model.
I think the way we want to approach this is if you are not in the known http set of visibilities then we will drop the property and not emit it into the model.
There are a set of known visibilities from typespec https://github.com/microsoft/typespec/blob/31863054269264dbba0eb8d379089eb97ba86b06/packages/http/src/metadata.ts#L31.
Our strategy today is we honor
Read
by making a property not have a setter and the rest we do nothing special with.Since visibility takes an unbounded string we might come across things that are completely independent of clients like
gateway
or database type stuff.In this case we should omit those properties from the model.
I think the way we want to approach this is if you are not in the known http set of visibilities then we will drop the property and not emit it into the model.