Skip to content

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

Open
shane-rand wants to merge 2 commits into
universal-tool-calling-protocol:mainfrom
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 2 commits into
universal-tool-calling-protocol:mainfrom
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

@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
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