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
- Install the emitter `npm install @azure-tools/typespec-autorest`
78
78
- Under `/Azure.Messaging.EventGrid.SystemEvents/`:
79
-
- Run `npx tsp compile main.tsp --emit @azure-tools/typespec-autorest`
80
-
1) Verify the generated swagger under `/data-plane/Microsoft.EventGrid/2024-01-01/` accurately depicts your system events and commit it.
79
+
- Run `tsp compile .`
80
+
1) Verify the generated swaggers `/data-plane/Microsoft.EventGrid/2018-01-01/GeneratedSystemEvents.json` and `/data-plane/Microsoft.EventGrid/2024-01-01/GeneratedSystemEvents.json` accurately depicts your system events.
81
+
1) Copy the delta from `/data-plane/Microsoft.EventGrid/2018-01-01/GeneratedSystemEvents.json` into your resource provider-specific swagger, e.g. `data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json`. Make any manual adjustments as needed.
81
82
1) Final PR must contain the TypeSpec and the Swagger generated from the TypeSpec.
0 commit comments