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

Create lro-location-header rule to disable LroLocationHeader LintDiff rule #514

Merged
merged 7 commits into from
Mar 28, 2024

Conversation

tjprescott
Copy link
Member

@tjprescott tjprescott commented Mar 25, 2024

@azure-sdk
Copy link
Collaborator

azure-sdk commented Mar 25, 2024

All changed packages have been documented.

@azure-sdk
Copy link
Collaborator

```tsp
@armResourceOperations
interface Employees {
delete is ArmResourceDeleteAsync<Employee>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this example represent what someone could see. As this operation template is already deprecated.
Maybe should should show what a bad custom template would have and in the correct section show both a correct custom template but keep the standard templates as well

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated it to use what the actual problem-generated specs used, which was overriding the LroHeaders template parameter with {} to get rid of the headers. Generally, using our templates properly should avoid this scenario.

@tjprescott tjprescott enabled auto-merge (squash) March 28, 2024 21:59
@tjprescott tjprescott merged commit f1d30de into main Mar 28, 2024
16 checks passed
@tjprescott tjprescott deleted the arm/LroLocationHeaderRule branch March 28, 2024 22: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.

4 participants