Skip to content

feat(openapi): implement openapi toolset and integration tests (part 4)#387

Open
AmaadMartin wants to merge 2 commits into
google:feat/openapi_tool_part3from
AmaadMartin:feat/openapi_tool_part4
Open

feat(openapi): implement openapi toolset and integration tests (part 4)#387
AmaadMartin wants to merge 2 commits into
google:feat/openapi_tool_part3from
AmaadMartin:feat/openapi_tool_part4

Conversation

@AmaadMartin
Copy link
Copy Markdown
Collaborator

Link to Issue or Description of Change

Problem:
To achieve parity with Python and fully automate OpenAPI integration, developers need a top-level BaseToolset that instantiates all individual tool endpoints from a spec file.

Solution:
Implemented OpenAPIToolset and integration tests (Part 4 of 4):

  • openapi_toolset.ts: Accepts YAML/JSON specifications or raw documents, invokes the spec parser, and exposes generated RestApiTool instances.
  • Adds test fixtures (petstore.yaml, truanon.yaml) and full integration tests.

Testing Plan

Unit Tests:

  • I have added or updated unit tests for my change.
  • All unit tests pass locally.

Summary of passed results:

  • Achieved 95.14% overall test coverage across the complete OpenAPI toolset feature.
  • Actual Line Coverage by File:
    • openapi_toolset.ts: 93.58%

Integration Tests:

  • All integration tests pass locally.
  • Verified that OpenAPIToolset successfully parses real-world specs and executes operations with mocked network requests.

Checklist

  • I have performed a self-review of my own code.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.

This implements OpenAPIToolset and adds integration tests and fixtures.

TAG=agy
CONV=5d70d8ac-425c-4f8c-a969-97b17ecc66ce
@AmaadMartin AmaadMartin changed the base branch from main to feat/openapi_tool_part3 May 27, 2026 20:38
TAG=agy
CONV=5d70d8ac-425c-4f8c-a969-97b17ecc66ce
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.

1 participant