We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Should raise a diagnostic that it's not allowed
import "@azure-tools/typespec-client-generator-core"; using Azure.ClientGenerator.Core; @clientName("") model Foo {}
The text was updated successfully, but these errors were encountered:
@timotheeguerin suggested something like:
if(arg === "") { reportDiagnostic(program, { code: "client-name-blank", target: context.getArgumentAtIndex(0) }) }
Sorry, something went wrong.
I would also suggest checking for a whitespace string not just empty string
@clientName(" ") // error on this
[tcgc] add linter for empty client names (#1066)
30fa1e0
fixes #647 --------- Co-authored-by: iscai-msft <[email protected]> Co-authored-by: catalinaperalta <[email protected]>
[tcgc] add linter for empty client names (Azure#1066)
2271561
fixes Azure#647 --------- Co-authored-by: iscai-msft <[email protected]> Co-authored-by: catalinaperalta <[email protected]>
iscai-msft
Successfully merging a pull request may close this issue.
Describe the bug
Should raise a diagnostic that it's not allowed
Reproduction
Checklist
The text was updated successfully, but these errors were encountered: