Repository navigation
feat(ipa): add IPA-132 LRO classification rules - #1444
Merged
Merged
Conversation
Add the two rules classifying which methods must not be modeled as long-running operations: - xgen-IPA-132-get-method-must-not-be-lro: a Get method must not declare a 202 response; a Get returns the current state of a resource that already exists on the server. Applies to single resources and singleton resources, mirroring the IPA-104 Get method scoping. - xgen-IPA-132-list-method-must-not-be-lro: a List method must not declare a 202 response; a List returns data from a collection that already exists on the server. Applies to resource collections, mirroring the IPA-105 List method scoping. No GET method in the current spec declares a 202, so the rules report nothing today; the tests cover the correct and incorrect examples from the IPA-132 guidelines.
julius-jogela
requested review from
andmatei,
andreaangiolillo,
drinkbird,
matt-condon,
saisundar,
wtrocki and
yelizhenden-mdb
August 20, 2026 13:32
…ptions Define the GetOperationObject alias used by IPA-104 and IPA-105 instead of repeating the raw given, and add the compliant-method-with-exception test case each IPA-132 rule test defines. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
yelizhenden-mdb
approved these changes
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
This PR adds the two IPA-132 rules classifying which methods must not be modeled as long-running operations. A read returns state that already exists on the server, so there is no background work to track and the method must not declare a
202 Acceptedresponse.Jira ticket: CLOUDP-435355
Rules added
Both at
warnseverityxgen-IPA-132-get-method-must-not-be-lroxgen-IPA-132-list-method-must-not-be-lroOperations with
x-xgen-IPA-exceptionfor a rule are excluded from its validation.Testing
gen-ipa-docs, prettier and eslint clean.Checklist