- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
feat(client): add fallback inference for operation resolution
Enhanced the resolveOperation function to handle cases where the operationId is not found in the document. This update includes a fallback mechanism that infers a simple `Operation` type when the specified operationId does not exist. This improvement ensures that the function can gracefully handle unknown operation IDs by returning a basic operation structure, which is crucial for maintaining robustness in dynamic API exploration scenarios. The changes include updates to both the implementation and test files to support and verify the new behavior, ensuring that the function continues to operate correctly under wider usage conditions.
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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