Skip to content
New issue

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

Validate @useAuth is unique on node #2958

Merged
merged 5 commits into from
Feb 28, 2024

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Feb 27, 2024

fix #2787

having multiple has no effect, the latest value will override the previous ones so there is no reason to use @useAuth twice on the same node

@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 27, 2024

All changed packages have been documented.

@azure-sdk
Copy link
Collaborator

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/2958/

Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/2958/

@timotheeguerin timotheeguerin enabled auto-merge (squash) February 28, 2024 21:06
@timotheeguerin timotheeguerin merged commit c9c1f3e into microsoft:main Feb 28, 2024
14 checks passed
@timotheeguerin timotheeguerin deleted the validate-useauth-unique branch February 28, 2024 21:52
markcowl pushed a commit to markcowl/cadl that referenced this pull request Mar 8, 2024
fix microsoft#2787 

having multiple has no effect, the latest value will override the
previous ones so there is no reason to use `@useAuth` twice on the same
node

---------

Co-authored-by: Brian Terlson <brian.terlson@microsoft.com>
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.

Disallow multiple @useAuth usage
3 participants