microsoft / microsoft/typespec
Add linter rule or http warning for empty scopes
Open
triaged:core
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
The `scopes` for AuthorizationCodeFlow is required but allowed for empty values. But actually an empty scope is not acceptable in Azure SDK. Could we add a linter to warn the empty scopes?
https://github.com/microsoft/typespec/blob/main/packages/http/lib/auth.tsp#L148
See dicussions https://github.com/Azure/azure-rest-api-specs/pull/26038#discussion_r1382190547
Contributor guide
Assessment
This issue has not been assessed yet.