-
Notifications
You must be signed in to change notification settings - Fork 227
Override generateFromTypeSpec by the result in generateOutput.json #13394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR modifies how the generateFromTypeSpec flag is determined for .NET SDK automation in spec pull request scenarios. Instead of relying on package-level TypeSpec flags, the implementation now reads this value from the generateOutput.json file produced by the .NET automation script.
Key Changes:
- Reads
generateOutput.jsonto determine if TypeSpec is used for .NET SDKs in spec-pull-request mode - Removes the .NET exclusion from the initial tspconfig.yaml-based TypeSpec detection
- Adds error handling for missing
generateOutput.jsonfile
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| tools/spec-gen-sdk/src/automation/reportStatus.ts | Modified logic to read generateFromTypeSpec value from generateOutput.json for .NET SDKs in spec-pull-request mode; removed .NET exclusion from tspconfig.yaml check; added new imports for readTmpJsonFile, externalError, and getGenerateOutput |
| tools/spec-gen-sdk/package.json | Bumped package version from 0.9.4 to 0.9.5 |
| tools/spec-gen-sdk/package-lock.json | Updated lock file to reflect version 0.9.5 |
| tools/spec-gen-sdk/CHANGELOG.md | Added entry for version 0.9.5 documenting the generateFromTypeSpec override for .NET |
Files not reviewed (1)
- tools/spec-gen-sdk/package-lock.json: Language not supported
Co-authored-by: Copilot <[email protected]>
…13394) * Override generateFromTypeSpec by the result in generateOutput.json * Update tools/spec-gen-sdk/src/automation/reportStatus.ts Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
Resolved an issue of not setting
SDK Validation - .NETas required check when generation fails.Repro PR