microsoft / microsoft/typespec

Add linter rule or http warning for empty scopes

Open
#2,641 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.