Add linter rule arm-post-lro-response-mismatch for ARM POST LRO operations#4145
Add linter rule arm-post-lro-response-mismatch for ARM POST LRO operations#4145
arm-post-lro-response-mismatch for ARM POST LRO operations#4145Conversation
…tions Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/7bf3456e-7b67-406e-a438-d26cf5637117 Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
…-lro-response-mismatch Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/7bf3456e-7b67-406e-a438-d26cf5637117 Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
arm-post-lro-response-mismatch for ARM POST LRO operations
packages/typespec-azure-resource-manager/src/rules/arm-post-lro-response-mismatch.ts
Outdated
Show resolved
Hide resolved
packages/typespec-azure-resource-manager/src/rules/arm-post-lro-response-mismatch.ts
Outdated
Show resolved
Hide resolved
packages/typespec-azure-resource-manager/test/rules/arm-post-lro-response-mismatch.test.ts
Outdated
Show resolved
Hide resolved
…r-arm-post-lro Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/52cf9dab-ba01-4457-92cd-cd8badcefa7d Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
|
@copilot Please pull the latest from main, regenrate docs for tyepspec-azure-resource-manager, validate that all files are correctly formatted. |
Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/f4c32a71-7b4b-4f80-ba9b-5ba00fbfab8b Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Pulled latest from main (already up to date at a228fc5), regenerated docs for typespec-azure-resource-manager (added the new rule to README.md and linter.md), validated formatting, and confirmed all 286 tests pass. Done in 7e87831. |
markcowl
left a comment
There was a problem hiding this comment.
Please pull the latest from main, make the changes suggested, ensure all tests are passing and all files are correctly formatted.
packages/typespec-azure-resource-manager/src/rules/arm-post-lro-response-mismatch.ts
Show resolved
Hide resolved
…finalResult Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/1f249f2b-9ceb-48a6-ba20-2449bb561b02 Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Pulled latest from main (already up to date), added the fallback for non-template operations that checks the 200 response body vs final-result-schema, and verified all 288 tests pass with correct formatting. Done in fcb4809. |
Pulled latest from main, fixed the |
commit: |
|
@copilot pull the latest and fix any merge issues |
…r-arm-post-lro Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
markcowl
left a comment
There was a problem hiding this comment.
Pull the latest, make the suggested fixes and also add tests (or add to existing tests) to test these additional finalResult types for both template instantiations and raw operations.
Ensure that all tests pass, that there are no merge issues with main and that all files are correctly formatted.
packages/typespec-azure-resource-manager/src/rules/arm-post-lro-response-mismatch.ts
Outdated
Show resolved
Hide resolved
…r-arm-post-lro Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
…or scalar and unknown types Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/097ee85d-b143-454b-baab-9431c663682b Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/097ee85d-b143-454b-baab-9431c663682b Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Pulled latest from main (merged cleanly), updated |
markcowl
left a comment
There was a problem hiding this comment.
Pull the latest from main, make the suggested changes and add any tests that are necessary to cover code changes, make sure all tests pass, all files are correctly formatted, and there are no merge issues with the main branch
packages/typespec-azure-resource-manager/src/rules/arm-post-lro-response-mismatch.ts
Outdated
Show resolved
Hide resolved
packages/typespec-azure-resource-manager/src/rules/arm-post-lro-response-mismatch.ts
Show resolved
Hide resolved
packages/typespec-azure-resource-manager/test/rules/arm-post-lro-response-mismatch.test.ts
Outdated
Show resolved
Hide resolved
…r-arm-post-lro Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
….each Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/aa99bc42-fed8-4568-b27b-ddb68950893a Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Pulled latest from main (merged cleanly), fixed void type handling, refactored tests to use |
|
/azp run typespec-azure - PR Tools |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
All changed packages have been documented.
Show changes
|
|
You can try these changes here
|
arm-post-lro-response-mismatchfor ARM POST LRO operationsArmResourceActionAsync,ActionAsync,ArmProviderActionAsyncresolveArmResourcesfor both resource-level and provider-level actionsarm-post-lro-set-final-resultusingArmLroLocationHeader<FinalResult = ResponseType>isAssignableTofrom typekit for type compatibility checks"void"finalResult is compared against TypeSpec builtin void type viaisVoidTypeResponse extends Model | unknown | voidtemplate constraint)it.eachfor parameterized type matching/non-matching scenarios💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.