Make @useFinalStateVia validation decorator-order independent for PUT operations#4394
Conversation
Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/04a20e6a-4942-4513-a23b-c7da149424ee Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
@useFinalStateVia validation decorator-order independent for PUT operations
Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/14286848-b019-40c2-a281-89302c5b0347 Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/d6094bc1-183d-4852-9009-4382ff621a74 Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/d6094bc1-183d-4852-9009-4382ff621a74 Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/d6094bc1-183d-4852-9009-4382ff621a74 Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/d6094bc1-183d-4852-9009-4382ff621a74 Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/618a3a05-8004-439d-af10-6fde0d07caad Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
|
@copilot run formatter |
commit: |
Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/ad275149-796e-4de5-9507-fb351ef41273 Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
|
All changed packages have been documented.
Show changes
|
|
You can try these changes here
|
|
@copilot test are failing now i believe the validate does more than just validating we might need to split the data registration from the validaiton |
…ation Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/b6a9de46-bad2-48af-9447-ff690a8da0a1 Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
... Fixed in 0c4b635. I restored the PUT-specific override registration in Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
@useFinalStateVia("original-uri")could incorrectly reportinvalid-final-statewhen@putwas applied before/after it in a different order. The validator was effectively sensitive to decorator execution order instead of final operation shape.Post-decorator validation for
@useFinalStateVia@useFinalStateViavalidation into a decorator post-validation callback (onTargetFinish).Regression coverage for the reported ordering bug
@put @useFinalStateVia("original-uri")on an LRO operationinvalid-final-statediagnostic and confirms the override is stored asoriginal-uri.Behavioral impact