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

Properly exclude operation templates when scanning for routes #600

Merged
merged 1 commit into from
Jun 8, 2022

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented Jun 8, 2022

Noticed a bug in the rest library change I made for PR #552 where I tried to exclude templated operations when we scan for routes in namespaces. This small change checks op.node.templateParameters instead of op.templateArguments when determining if an operation is templated.

This is related to PR https://github.com/Azure/cadl-azure/pull/1556.

@azure-pipelines
Copy link

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

@daviwil daviwil force-pushed the fix-template-operation-exclusion branch from 1b2b609 to a1388d5 Compare June 8, 2022 12:34
@daviwil daviwil force-pushed the fix-template-operation-exclusion branch from a1388d5 to 0b65602 Compare June 8, 2022 14:45
@daviwil daviwil enabled auto-merge (squash) June 8, 2022 14:48
@daviwil daviwil merged commit 1f69006 into microsoft:main Jun 8, 2022
@daviwil daviwil deleted the fix-template-operation-exclusion branch June 8, 2022 15:00
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.

3 participants