Skip to content

Conversation

@raych1
Copy link
Member

@raych1 raych1 commented Sep 9, 2025

  • made path as optional config
  • added command to RunOptions type

This is to support defining single line of command inline of the config file for build SDK process.

Two related PRs:
Azure/azure-sdk-for-java#46647
Azure/azure-sdk-for-net#52546

Copilot AI review requested due to automatic review settings September 9, 2025 22:43
Copy link
Contributor

Copilot AI left a 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 adds support for defining single-line commands inline in the configuration file for the SDK generation process. The changes make the path property optional in RunOptions and introduce a new command property as an alternative.

  • Made path property optional in RunOptions type definition
  • Added command property to support inline command execution
  • Added validation to ensure either path or command is provided

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tools/spec-gen-sdk/src/types/SwaggerToSdkConfig.ts Updated RunOptions type to make path optional and add command property
tools/spec-gen-sdk/src/types/SwaggerToSdkConfigSchema.json Added command field to schema and removed path from required fields
tools/spec-gen-sdk/src/utils/runScript.ts Added validation to throw error when path is not provided
tools/spec-gen-sdk/test/utils/runScript.test.ts Added test case for validation when path is missing
tools/spec-gen-sdk/package.json Version bump to 0.9.2
tools/spec-gen-sdk/CHANGELOG.md Added changelog entry for the new feature
Files not reviewed (1)
  • tools/spec-gen-sdk/package-lock.json: Language not supported

@raych1 raych1 merged commit 894eae2 into main Sep 11, 2025
9 checks passed
@raych1 raych1 deleted the user/raych1/schema-update branch September 11, 2025 21:02
@kurtzeborn kurtzeborn moved this from 🔬 Dev in PR to 🎊 Closed in Azure SDK EngSys ❄️🎄🎁🎅✨ Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants