Can't generate multiple services imported in the main.tsp #4224
Replies: 2 comments 2 replies
-
I will try to test out the repo soon, but if you can produce something that repros in the playground that would be a huge help. In the meantime, one thing I see that is new to me is the nested service namespaces. Are you trying to get standalone OpenAPI specs for each of those? It should work, just curious. One thing that won't work though is the way you're using |
Beta Was this translation helpful? Give feedback.
-
Brian thank you for taking a look at my code and confirming that it was supposed to work, just solved the problem today: got a new warning out of the blue in my text editor and found out that my global TypeSpec compiler conflicted with local version, so reinstalling the template and copy pasting existing code helped to solve it. |
Beta Was this translation helpful? Give feedback.
-
Have been stuck for a while on this problem: every time I'm trying to emit a yaml file by running
npx tsp compile .
I get generated a yaml file only for the last imported service. Here's my tspconfig.yaml :I don't know if it has anything to do with it but I also was getting warnings during compilation ln terminal:
No namespace with '@service' was found, but Namespace 'AdminService' contains routes. Did you mean to annotate this with '@service'?
which I found unreasonable, since I have service decorators everywhere, and added#suppress "@typespec/http/no-service-found" ""
to supress it. Here's the repository I'm having issues with.Beta Was this translation helpful? Give feedback.
All reactions