Skip to content

fix: OpenAPI Converter was not parsing examples for request parameters#88

Open
shane-rand wants to merge 21 commits into
universal-tool-calling-protocol:devfrom
shane-rand:fix/openapi-converter-misses-examples-on-params
Open

fix: OpenAPI Converter was not parsing examples for request parameters#88
shane-rand wants to merge 21 commits into
universal-tool-calling-protocol:devfrom
shane-rand:fix/openapi-converter-misses-examples-on-params

Conversation

@shane-rand

@shane-rand shane-rand commented Jun 17, 2026

Copy link
Copy Markdown

Summary by cubic

Preserves OpenAPI examples by parsing both example and examples, resolving $refs, and wiring them into JSON Schema examples for parameters, request bodies, and responses. Also tightens typing and adds tests to prevent regressions.

  • Bug Fixes
    • Extract examples from parameters (path, query, OAS2 body), requestBody media types (OAS3), and responses (media type and schema-level).
    • Resolve $ref inside examples; use inline value only and ignore externalValue.
    • Harden typing and attribute access (Literal/cast, getattr) and add tests for parameter, body, and response examples.

Written for commit 15878ea. Summary will update on new commits.

Review in cubic

h3xxit and others added 20 commits August 26, 2025 17:03
…tool-calling-protocol/dev

Add docs and update http to 1.0.2
…tool-calling-protocol/dev

Fix response json parsing when content type is wrong
…om universal-tool-calling-protocol/dev

Update CLI
…tool-calling-protocol/dev

Plugin updates
…tool-calling-protocol/dev

  Add WebSocket transport implementation for real-time communication …
…tool-calling-protocol/dev

Socket and GraphQL Plugins
…tool-calling-protocol/dev

Update UTCP to 1.1
…tool-calling-protocol/dev

Update all plugins to 1.1
…tool-calling-protocol/dev

Fix some issues
…tool-calling-protocol/dev

Fix bug in mcp plugin
…tool-calling-protocol/dev

fix(cli): block command injection and env leak in CLI protocol

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

2 issues found across 2 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread plugins/communication_protocols/http/src/utcp_http/openapi_converter.py Outdated
@h3xxit h3xxit changed the base branch from main to dev June 17, 2026 22:53
@h3xxit h3xxit self-requested a review June 17, 2026 22:53
@shane-rand

Copy link
Copy Markdown
Author

@h3xxit Thank you for setting this up correctly for me. I didn't realize dev was the integration branch. I'll keep that in mind for any other contributions.

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.

2 participants