環境設定ファイルを追加し、make-json.shにエラーハンドリングとJSONスキーマのバリデーションを追加。新しいスクリプトpromote-manifest.shを作成し、マニフェスト生成のプロセスを強化。README.mdを更新し、プロンプト生成の構造を明確化。シーンとスタイルの登録ルールを整理し、スキーマファイルを追加。
This commit is contained in:
41
schema/prompt.schema.json
Normal file
41
schema/prompt.schema.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": ["meta", "prompt_text"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"meta": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"world_id",
|
||||
"world_version",
|
||||
"style_id",
|
||||
"scene_id",
|
||||
"task_type"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"world_id": { "type": "string" },
|
||||
"world_version": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9]+\\.[0-9]+$"
|
||||
},
|
||||
"style_id": { "type": "string" },
|
||||
"scene_id": { "type": "string" },
|
||||
"task_type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"character_full_body",
|
||||
"scene_composition",
|
||||
"item_design",
|
||||
"prop_design"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"prompt_text": {
|
||||
"type": "string",
|
||||
"minLength": 20
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user