microsoft / typespec

https://typespec.io/
MIT License
4.55k stars 222 forks source link

[http-server-csharp] No interfaces and controllers generated when `op`s are wrapped inside a namespace #5125

Closed ArcturusZhang closed 4 hours ago

ArcturusZhang commented 1 week ago

I saw this issue when I am trying to generate the petstore: https://github.com/microsoft/typespec/tree/main/packages/samples/specs/petstore Because of this issue, I removed everything related with templated models (including models and operations), and only models are generated.

FYI, changing namespace to interface would do the trick. But this does not really make sense, namespace should work just fine.

markcowl commented 1 week ago

I think this is fixed by: https://github.com/microsoft/typespec/pull/5140