Skip to content

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

Conversation

burivuhster
Copy link
Contributor

@burivuhster burivuhster commented Jun 2, 2025

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:

  • Structured Output Parser
  • Information Extractor
  • Code Tool

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

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

Copy link

codecov bot commented Jun 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Jun 2, 2025
@burivuhster burivuhster marked this pull request as ready for review June 3, 2025 07:07
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a 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.

@burivuhster burivuhster requested review from a team, OlegIvaniv and ggozad and removed request for a team June 3, 2025 09:26
@burivuhster burivuhster force-pushed the ai-980-allow-for-json-schemas-generated-from-example-be-marked-as branch from 19eb2a1 to f6d1623 Compare June 4, 2025 16:55
@burivuhster burivuhster changed the title feat(Structured Output Parser Node): Add option to mark parameters as required for schemas generated from JSON example feat(Structured Output Parser Node): Mark all parameters as required for schemas generated from JSON example Jun 5, 2025
Copy link
Contributor

@ggozad ggozad left a comment

Choose a reason for hiding this comment

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

Super, well done!

@shortstacked
Copy link
Contributor

Workflow Test Results 📊 🔴 2 Failed, ⚠️ 3 Warnings, 👍 78 Successful out of 83 total workflows.

Detail: Workflows failing: 237: Workflow contains 1 deleted data. View full workflow run

Tested Ref: 9ef9c77c6609db4f5b7a124b653c307133a23c83 by @ggozad

❌ Failed Tests (2)

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.

Copy link
Contributor

github-actions bot commented Jun 5, 2025

✅ All Cypress E2E specs passed

@burivuhster burivuhster merged commit 7711e4b into master Jun 5, 2025
35 checks passed
@burivuhster burivuhster deleted the ai-980-allow-for-json-schemas-generated-from-example-be-marked-as branch June 5, 2025 10:11
@janober
Copy link
Member

janober commented Jun 11, 2025

Got released with [email protected]

TianYi0217 pushed a commit to TianYi0217/n8n that referenced this pull request Jun 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants