- Install the GitHub Copilot CLI by following the official installation guide.
- Start copilot CLI session from the root folder of https://github.com/Azure/azure-rest-api-specs. Below screenshot is starting the session in VSCode terminal.
This document is the remaining case study on TCGC usage and access adoption, it does not include the spread cases as it already covers in another gist.
we will not track usage for response header schema, see code. thus we will not generate the model. But TCGC return the model with access public, so we will generate the model after adopting TCGC which is incorrect.
Test case:
As flatten or spread concepts are quite confusing, this document will use below definition:
..., e.g. op(...AModel)@body and not using spread syntax ..., e.g. op(a: AModel)If a body parameter is defined without @body, TCGC will create an anonymous model with spread usage for it, unless it is like case1, where there is only single spread body param, it will not create anonymous model, but reuse the spreaded model.