refactor(schemas): update titles in JSON schemas for consistency and clarity

This commit is contained in:
Harry
2025-08-26 16:02:58 +08:00
parent 60fb242f27
commit 61f2f8fd31
5 changed files with 5 additions and 4 deletions

View File

@@ -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": {

View File

@@ -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"

View File

@@ -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": {

View File

@@ -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": {

View File

@@ -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
})