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
In readme.md, it contains both Sub1RP (swagger) and Sub2RP (swagger).
In Sub1.Management is the TypeSpec for Sub1, while in Sub2.Management is the TypeSpec for Sub2.
This is an example:
Question: Where should we put the main.tsp?
Option 1: two main.tsps in both Sub1.Management and Sub2.Management
The problem is we have to generate 2 SDKs for Sub1.Management and Sub2.Management respectively. However, previously the readme.md contains two swaggers and we only have one SDK for this readme.md
Option 2: only one main.tsp importing specs from both Sub1.Management and Sub2.Management
The problem is only one swagger is generated, then we don't have Sub1RP and Sub2RP.
The text was updated successfully, but these errors were encountered:
One of the major reasons for allowing this in swagger was to allow multiple api-versions of a service in a single SDK. This is no longer allowed, and will not be supported in TypeSpec
Since TypeSpec is the source of truth, and a single, logiclal typespec spec can be split into multiple files or directories, there is no need for separate projects to separate concerns.
If there are any further questions or concerns, let's discuss
It's common for a service to have multiple sub services. Their spec structure is like
In
readme.md
, it contains bothSub1RP (swagger)
andSub2RP (swagger)
.In
Sub1.Management
is the TypeSpec forSub1
, while inSub2.Management
is the TypeSpec forSub2
.This is an example:
Question: Where should we put the
main.tsp
?Option 1: two
main.tsp
s in bothSub1.Management
andSub2.Management
The problem is we have to generate 2 SDKs for
Sub1.Management
andSub2.Management
respectively. However, previously the readme.md contains two swaggers and we only have one SDK for this readme.mdOption 2: only one
main.tsp
importing specs from bothSub1.Management
andSub2.Management
The problem is only one swagger is generated, then we don't have Sub1RP and Sub2RP.
The text was updated successfully, but these errors were encountered: