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

adapt new polices for lro operation #333

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

necusjz
Copy link
Member

@necusjz necusjz commented Mar 4, 2024

Fix: #331

from https://github.com/Azure/azure-openapi-validator/blob/main/docs/delete-response-codes.md#output-message

long-running (LRO) delete operations must have 202, 204, and default responses. They must not have any other responses.

But we still have 200 response from operationStatuses. The schema for operationStatues is not defined by the swagger, we need to adapt that.

@necusjz necusjz requested a review from AllyW March 4, 2024 05:49
@necusjz necusjz self-assigned this Mar 4, 2024
@necusjz necusjz merged commit b469c5f into Azure:dev Mar 15, 2024
3 checks passed
@necusjz necusjz mentioned this pull request Mar 15, 2024
Comment on lines -593 to -594
else:
logger.warning(f"No response schema for long-running-operation: {schema.operation_id}.")
Copy link
Collaborator

@kairu-ms kairu-ms Apr 1, 2024

Choose a reason for hiding this comment

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

For this case, you should make sure it's the delete operation.

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.

aaz generated delete command returns TypeError: 'NoneType' object is not callable for async delete operation
3 participants