Skip to content

Avoid runtime errors when given invalid OAuth2Auth flow arguments#2335

Merged
daviwil merged 3 commits into
microsoft:mainfrom
daviwil:use-auth-error
Aug 29, 2023
Merged

Avoid runtime errors when given invalid OAuth2Auth flow arguments#2335
daviwil merged 3 commits into
microsoft:mainfrom
daviwil:use-auth-error

Conversation

@daviwil

@daviwil daviwil commented Aug 28, 2023

Copy link
Copy Markdown
Contributor

This PR fixes #2316 by adding some extra logic to avoid runtime errors when invalid values are given in the OAuth2Flow array passed to OAuth2Auth.

@github-actions

Copy link
Copy Markdown
Contributor

Changes in this PR will be published to the following url to try(check status of TypeSpec Pull Request Try It pipeline for publish status):
Playground: https://cadlplayground.z22.web.core.windows.net/prs/2335/

Website: https://cadlwebsite.z1.web.core.windows.net/prs/2335/

@daviwil
daviwil enabled auto-merge (squash) August 29, 2023 05:49
@daviwil
daviwil merged commit 6a7b335 into microsoft:main Aug 29, 2023
@daviwil
daviwil deleted the use-auth-error branch August 29, 2023 09:48
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.

Internal Compiler error from @useAuth

2 participants