mirror of
https://github.com/langgenius/dify.git
synced 2026-01-08 07:14:14 +00:00
refactor(schemas): update titles in JSON schemas for consistency and clarity
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"version": "1.0.0",
|
||||
"type": "object",
|
||||
"title": "File Schema",
|
||||
"title": "File",
|
||||
"description": "Schema for file objects (v1)",
|
||||
"properties": {
|
||||
"name": {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"version": "1.0.0",
|
||||
"type": "array",
|
||||
"title": "General Structure Schema",
|
||||
"title": "General Structure",
|
||||
"description": "Schema for general structure (v1) - array of strings",
|
||||
"items": {
|
||||
"type": "string"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"version": "1.0.0",
|
||||
"type": "object",
|
||||
"title": "Parent-Child Structure Schema",
|
||||
"title": "Parent-Child Structure",
|
||||
"description": "Schema for parent-child structure (v1)",
|
||||
"properties": {
|
||||
"parent_mode": {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"version": "1.0.0",
|
||||
"type": "object",
|
||||
"title": "Q&A Structure Schema",
|
||||
"title": "Q&A Structure",
|
||||
"description": "Schema for question-answer structure (v1)",
|
||||
"properties": {
|
||||
"qa_chunks": {
|
||||
|
||||
@@ -123,6 +123,7 @@ class SchemaRegistry:
|
||||
for schema_name, schema in version_schemas.items():
|
||||
result.append({
|
||||
"name": schema_name,
|
||||
"label": schema.get("title", schema_name),
|
||||
"schema": schema
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user