fix: keep title keys inside OpenAPI singular example values - #12314
Open
LHMQ878 wants to merge 2 commits into
Open
fix: keep title keys inside OpenAPI singular example values#12314LHMQ878 wants to merge 2 commits into
LHMQ878 wants to merge 2 commits into
Conversation
Follow up deepset-ai#12219: treat OpenAPI 3.0 example the same as examples so nested title keys survive tool schema stripping. Co-authored-by: Cursor <cursoragent@cursor.com>
LHMQ878
force-pushed
the
fix-keep-title-inside-openapi-example
branch
from
August 12, 2026 04:17
de5ce86 to
74ba569
Compare
|
@LHMQ878 is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
6 tasks
Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
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.
Summary
titlewhen it is a name, not a schema keyword #12219: treat OpenAPI 3.0 singularexampleas instance data in_DATA_SCHEMA_KEYWORDS, same asexamples/default/const/enum.titlekeys carried via Pydanticjson_schema_extra={example: ...}when building tool schemas.exampleand a public-API regression throughcreate_tool_from_function.Context
Flagged by @percymcn on #12219 after re-checking the post-merge
3.1.0.devbuild.Test plan
test_remove_title_from_schema_keeps_instance_datapasses with singularexampletest_from_function_with_openapi_example_containing_title_keypassesitems/propertyNames) still remove schema-leveltitle