Skip to content

Conversation

@mikeharder
Copy link
Member

@mikeharder mikeharder commented Nov 14, 2025

To Do

  • Fix compile/lint errors in eng/tools

@github-actions
Copy link

github-actions bot commented Nov 14, 2025

Next Steps to Merge

Next steps that must be taken to merge this PR:
  • ❌ The required check named Summarize PR Impact has failed. Refer to the check in the PR's 'Checks' tab for details on how to fix it and consult the aka.ms/ci-fix guide

Important checks have failed. As of today they are not blocking this PR, but in near future they may.
Addressing the following failures is highly recommended:
  • ⚠️ The check named Swagger BreakingChange has failed. To unblock this PR, follow the process at aka.ms/brch.


Comment generated by summarize-checks workflow run.

@mikeharder mikeharder requested a review from raych1 November 14, 2025 21:23
@@ -1,7 +1,38 @@
/* v8 ignore start */
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added test coverage, so we can remove ignore

]);
/**
* @typedef {'azure-sdk-for-go' | 'azure-sdk-for-java' | 'azure-sdk-for-js' | 'azure-sdk-for-net' | 'azure-sdk-for-python'} SdkName
* @typedef {import("zod").infer<typeof SdkNameSchema>} SdkName
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type SdkName is unchanged, but now has a schema

*/
const APIViewRequestDataSchema = z.object({ packageName: z.string(), filePath: z.string() });
/**
* @typedef {import("zod").infer<typeof APIViewRequestDataSchema>} APIViewRequestData
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type APIViewRequestData should be the same as the copy removed from eng/tools/spec-gen-sdk-runner/src/types.ts

apiViewRequestData: z.array(APIViewRequestDataSchema),
});
/**
* @typedef {import("zod").infer<typeof SpecGenSdkArtifactInfoSchema>} SpecGenSdkArtifactInfo
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type SpecGenSdkArtifactInfo should be the same as the copy removed from eng/tools/spec-gen-sdk-runner/src/types.ts

head_sha = specGenSdkArtifactInfo.headSha;

issue_number = parseInt(specGenSdkArtifactInfo.prNumber, 10);
issue_number = parseInt(specGenSdkArtifactInfo.prNumber ?? "", 10);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parseInt() only accepts a string, not undefined. But parseInt("") returns NaN anyway, so it's a good replacement.

@mikeharder mikeharder marked this pull request as draft November 14, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant