Update code generation section to reflect TypeSpec usage

Co-authored-by: RickWinter <4430337+RickWinter@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-10-21 15:43:27 +00:00
parent 3b9a686b70
commit 075bd7cbea

View File

@ -185,13 +185,14 @@ azure-sdk-for-cpp/
### 1. Code Generation ### 1. Code Generation
Some SDK components use AutoRest or other code generators: The C++ repository generates SDKs using TypeSpec with the [typespec-cpp emitter](https://github.com/azure/typespec-cpp):
- **Swagger/OpenAPI**: Located in `sdk/{service}/swagger/README.md` - **TypeSpec Projects**: Located in package directories with `tspconfig.yaml` and `tsp-location.yaml` files
- **Protocol Layer**: Auto-generated code in `src/private/` directories - **Configuration**: Service-specific settings in `tspconfig.yaml` define emitter options
- **Customizations**: Defined via directives in swagger README files - **Generated Code**: Auto-generated code in `src/private/` and header directories
- **TypeSpec Emitter**: Uses `@azure-tools/typespec-cpp` with Azure flavor for code generation
**Agent Guidance**: Do not manually edit generated files. Modify swagger configurations and regenerate. **Agent Guidance**: Do not manually edit generated files. Modify TypeSpec specifications and regenerate using the typespec-cpp emitter. Some older services may still have swagger directories for legacy purposes, but new SDK development uses TypeSpec exclusively.
### 2. API Review Process ### 2. API Review Process