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

[tsp-client convert] ARM converter adds @useAuth to main.tsp #5001

Open
2 tasks done
darkoa-msft opened this issue Aug 14, 2024 · 0 comments
Open
2 tasks done

[tsp-client convert] ARM converter adds @useAuth to main.tsp #5001

darkoa-msft opened this issue Aug 14, 2024 · 0 comments
Labels
openapi-to-tsp Tracks OpenAPI to Cadl converter issues

Comments

@darkoa-msft
Copy link
Member

darkoa-msft commented Aug 14, 2024

Before filling a bug

  • have you checked the faq for known issues.
  • have you checked existing issues

tsp-client convert --arm adds @useAuth(AadOauth2Auth<["user_impersonation"]>) to main.tsp, which causes the wrong security definition to be created in ARM swagger.

Expected behavior
After conversion, running tsp compile should produce the standard security definition.

Additional context
To repro, take an existing swagger, convert it and check main.tsp

@pshao25 pshao25 added the openapi-to-tsp Tracks OpenAPI to Cadl converter issues label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openapi-to-tsp Tracks OpenAPI to Cadl converter issues
Projects
None yet
Development

No branches or pull requests

2 participants