-
Notifications
You must be signed in to change notification settings - Fork 40
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
Conversation
All changed packages have been documented. |
bf0cb3b
to
b6029cc
Compare
You can try these changes at https://cadlplayground.z22.web.core.windows.net/typespec-azure/prs/514/ Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/typespec-azure/prs/514/ |
b6029cc
to
3a01e4e
Compare
c1fad5c
to
d94e26f
Compare
.chronus/changes/arm-LroLocationHeaderRule-2024-2-25-20-46-31.md
Outdated
Show resolved
Hide resolved
```tsp | ||
@armResourceOperations | ||
interface Employees { | ||
delete is ArmResourceDeleteAsync<Employee>; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
packages/typespec-azure-resource-manager/src/rules/lro-location-header.ts
Outdated
Show resolved
Hide resolved
packages/typespec-azure-resource-manager/src/rules/lro-location-header.ts
Outdated
Show resolved
Hide resolved
packages/typespec-azure-resource-manager/src/rules/lro-location-header.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
eaf4f42
to
d93f10e
Compare
d93f10e
to
a845ba4
Compare
Closes https://github.com/Azure/typespec-azure-pr/issues/3896
REST API Specs (9 violations)
Azure/azure-rest-api-specs#28505