-
Notifications
You must be signed in to change notification settings - Fork 33.8k
feat(Structured Output Parser Node): Mark all parameters as required for schemas generated from JSON example #15935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Structured Output Parser Node): Mark all parameters as required for schemas generated from JSON example #15935
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic found 7 issues across 8 files. Review them in cubic.dev
React with 👍 or 👎 to teach cubic. Tag @cubic-dev-ai
to give specific feedback.
...8n/nodes-langchain/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.ts
Outdated
Show resolved
Hide resolved
packages/@n8n/nodes-langchain/utils/output_parsers/N8nStructuredOutputParser.ts
Show resolved
Hide resolved
…onExtractor and ToolCode
19eb2a1
to
f6d1623
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super, well done!
Workflow Test Results 📊 🔴 2 Failed,
|
Workflow ID | Workflow Name | Reason |
---|---|---|
237 | BasicLLMChain:AzureChat | Workflow contains 1 deleted data. |
84 | Matrix:Room:create invite kick leave:RoomMember:ge... | Too Many Requests on node Matrix1 |
⚠️ Warnings (3)
Workflow ID | Workflow Name | Reason |
---|---|---|
35 | Slack:User:getPresence info:UserProfile:get update... | Workflow contains new data that previously did not exist. |
257 | Agent:auto-fix:anthropic | Workflow contains new data that previously did not exist. |
48 | Asana:Project:getAll get:Task:create update move g... | Workflow contains new data that previously did not exist. |
✅ All Cypress E2E specs passed |
Got released with |
…for schemas generated from JSON example (n8n-io#15935)
Summary
This PR modifies the JSON schema generation from JSON example. It marks all the properties as required recursively.
This logic affects the following nodes:
The new behavior will be enabled for the new versions of each node.
Related Linear tickets, Github issues, and Community forum posts
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)