Skip to content

Conversation

@skywing918
Copy link
Contributor

@skywing918 skywing918 commented Nov 21, 2025

fix #38964
fix Azure/azure-sdk-tools#12435

add HTTP client C# rules for emitter output directory and namespace validation
Azure/azure-sdk-tools#12435

  1. add a new TSV validation rule specifically targeting the csharp.
    tspconfig samples:
    @azure-typespec/http-client-csharp-mgmt
    @azure-typespec/http-client-csharp

  2. If @azure-typespec/http-client-csharp-mgmt and @azure-typespec/http-client-csharp are configured, validate that their values are correct; otherwise, show a warning if not find.

@github-actions
Copy link

github-actions bot commented Nov 21, 2025

Next Steps to Merge

⌛ Please wait. Next steps to merge this PR are being evaluated by automation. ⌛

Comment generated by summarize-checks workflow run.

[new TspConfigCsharpMgmtNamespaceSubRule()],
);

const httpClientCsharpAzEmitterOutputTestCases = createEmitterOptionTestCases(
Copy link
Member

Choose a reason for hiding this comment

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

Could you highlight the test cases for warning without tspconfig definition? And test case for error because of wrong definition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@MaryGao MaryGao changed the title add TSV rules for CShanp Fix the placeholder issue in emitter-output-dir and add TSV rules for CShanp Nov 25, 2025
@skywing918 skywing918 changed the title Fix the placeholder issue in emitter-output-dir and add TSV rules for CShanp add TSV rules for CShanpc and fix reslove placeholder variable Nov 25, 2025
return option;
}

protected resolveVariables(value: string, config: any): { resolved: string; error?: string } {
Copy link
Member

Choose a reason for hiding this comment

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

Here is to resolve the issue #38964.

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.

[tsv validation] fails for emitter-output-dir when using placeholder like {package-name} add TSV rules for CShanp.

3 participants