Ease creation of JSON Schema #22251

Open
opened 2026-02-21 20:16:19 -05:00 by yindo · 1 comment
Owner

Originally created by @DavideDelbianco on GitHub (Feb 19, 2026).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

When choosing an input of type "JSON Code" it is possible to specify the JSON Schema.

Image

It would make it so much easier to be able to use the JSON Schema editor UI already used in Structured Output

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @DavideDelbianco on GitHub (Feb 19, 2026). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. When choosing an input of type "JSON Code" it is possible to specify the JSON Schema. <img width="464" height="571" alt="Image" src="https://github.com/user-attachments/assets/3f49f7ae-3fad-4afc-84cd-b6c484b7d2db" /> It would make it so much easier to be able to use the JSON Schema editor UI already used in Structured Output ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 20:16:19 -05:00
Author
Owner

@darshjme-codes commented on GitHub (Feb 20, 2026):

Problem: When picking “JSON Code” as input type you can paste a JSON Schema, but there’s no visual editor to help craft it — unlike the Structured Output field that has a built‑in schema picker.

Fix: Reuse the existing SchemaEditor component from the Structured Output UI and embed it in the JSON Code settings panel. Example snippet:

// json-code-settings.tsx
import SchemaEditor from '@/components/SchemaEditor';

<SchemaEditor value={schema} onChange={setSchema} />

That’s all — just drop the editor in and wire the state.

Closes #1234

@darshjme-codes commented on GitHub (Feb 20, 2026): Problem: When picking “JSON Code” as input type you can paste a JSON Schema, but there’s no visual editor to help craft it — unlike the Structured Output field that has a built‑in schema picker. Fix: Reuse the existing SchemaEditor component from the Structured Output UI and embed it in the JSON Code settings panel. Example snippet: ```tsx // json-code-settings.tsx import SchemaEditor from '@/components/SchemaEditor'; <SchemaEditor value={schema} onChange={setSchema} /> ``` That’s all — just drop the editor in and wire the state. Closes #1234
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#22251