microsoft / typespec

https://typespec.io/
MIT License
4.53k stars 220 forks source link

[http-server-csharp] `@visibility("read")` changes nothing in the generated result #5003

Open ArcturusZhang opened 2 weeks ago

ArcturusZhang commented 2 weeks ago

Is this expected? when I have a model:

model HelloContent {
    @visibility("read")
    message?: string;

    version?: int32;
}

and use it as body request and response, the existence of visibility does not make a change in the generation result.

Should we have something generated related with that?

markcowl commented 1 week ago

We are still looking at how visibility will shape service emission (and now we will likely focus on enum-based visibility)