Skip to content

Repo sync #38828

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

Merged
merged 1 commit into from
Jun 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/rest/scripts/update-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ program
`The source repositories to get the dereferenced files from. When the source repo is ${REST_API_DESCRIPTION_ROOT}, the bundler is not run to generate the source dereferenced OpenAPI files because the ${REST_API_DESCRIPTION_ROOT} repo already contains them.`,
)
.choices(['github', REST_API_DESCRIPTION_ROOT, MODELS_GATEWAY_ROOT])
.default('github', 'github'),
.default(['github', MODELS_GATEWAY_ROOT]),
)
.option(
'-v --versions [VERSIONS...]',
Expand Down Expand Up @@ -236,7 +236,7 @@ async function validateInputParameters(): Promise<void> {

// The `--decorate-only` option cannot be used
// with the `--include-deprecated` or `--include-unpublished` options
if ((includeDeprecated || includeUnpublished) && !sourceRepos.include('github')) {
if ((includeDeprecated || includeUnpublished) && !sourceRepos.includes('github')) {
const errorMsg = `🛑 You cannot use the decorate-only option with include-unpublished or include-deprecated because the include-unpublished and include-deprecated options are only available when running the bundler. The decorate-only option skips running the bundler.\nPlease reach out to #docs-engineering if a new use case should be supported.`
throw new Error(errorMsg)
}
Expand Down
Loading